- Features
- Abiding by the theme
- Display Shots
- Running the project
- Rube goldberg implementation
- API used
- Contact info
- Member List
- β Get names of Solar system bodies
- β Get Data on a specific body
- β Get Astronomical calender
- β Get Horoscope based on sun sign
- β Give options to get today's horoscope or month horoscope for a sun sign.
- β Script to know when it will be dark enough to see the stars
Since the theme of this hackathon required us to base the name of the product on a book, I chose NightWatch: A Practical Guide to Viewing the Universe. NightWatch has been acclaimed as the best general interest introduction to astronomy.
The project is setup in such a way that you can run it using bunch of repl's. No need to download anything on your device !
Link to replit : https://repl.it/
- Fork this repl : https://repl.it/@GottaCatchEmAll/montainPythonRepl#main.py
- Make discord developer account and make a bot [https://discord.com/developers/docs/game-sdk/applications]
- Add bot token in .env file
- Update all url's to fit your username and node.js replit name
- Fork this repl : https://repl.it/@GottaCatchEmAll/montainNodeRepl#index.js
- Update the url's to fit your username and golang replit name
- Fork this repl : https://repl.it/@GottaCatchEmAll/mountainGoRepl#main.go
- This repl can be used as a rest API. You can make frontend with anything and hit these endpoints to make an application.
NOTE:For all the files please update the url used to hit endpoints accordingly.
Rube goldberg implementation means accomplishing by complex means what seemingly could be done simply. Usually discord bots need only one server but this project has three in total. What's more is that each of these server's are implemented in 3 different languages namely python, node.js and golang ! Here's how they work together
- Python server will do discord.py specific funuctions.
- Requests are forwared to Node.js server for validating inputs. For example checking if month name is correct or page number is valid.
- Any requests which need api calls are forwarded to Golang server after validating input through node.js server.
- Results are then returned from golang server to node.js to python to discord server. Beautiful !
- https://github.com/tapaswenipathak/Horoscope-API
- https://api.le-systeme-solaire.net/en/
- https://rhodesmill.org/skyfield/
- https://in-the-sky.org/newscal.php?year=2021&month=8&maxdiff=7
Me, myself and I π