kshitij10496 / hercules

The mighty hero helping you build projects on top of IIT Kharagpur's academic data
https://hercules-10496.herokuapp.com/api/v1/static/index.html
MIT License
34 stars 18 forks source link

hercules

hercules, the Roman God of Power, will provide you with the API for information related to IIT Kharagpur's academic life.

artwork

Motivation

Implementation

Current List of Endpoints:

service-course

service-department

service-faculty

Roadmap

After laying down the basic infrastructure for the project, I plan to develop the API on a needs basis.
This would mean that new endpoints would be developed on based on the use-cases around the problem statement.
For the time being, I have a shortlist of projects which I think would benefit the most from the API provided by hercules.

October 2019: Port wimp to use hercules.
November 2019: Port mcmp to hercules.
December 2019: Port Kronos to hercules.
December 2019: Port gyft to hercules.

Contributing

I have commented a lot of possible improvements to the API as TODO in the code which can be good place to start.
At the same time, new/parallel feature requests are welcomed and I would try my best to accomodate time to discuss them through.

Apart from contributing LoC, you can help us by discussing some of the techincal problems we are currently facing:

Local environment setup

You can develop on and test hercules using Docker. Make sure that docker and docker-compose are installed on your computer before following the steps below.

  1. Start the app and DB containers

    cd dev-env
    docker-compose up --build -d
  2. Restore the initial data to your DB container's database

    cd dev-env/init-data
    ./restore_init_data.sh

Now, you should be able to access the API. You can test this by visiting: http://localhost:8070/api/v1/course/timetable/ME30005 or running:

curl http://localhost:8070/api/v1/course/timetable/ME30005

This setup uses fresh to rebuild the server binary and restart the server whenever files are edited on the host machine. So, you can edit the files on your host machine and save them. Wait for a while, and your new code will be built and served at the same location.

You can look at the app logs using docker logs -f devenv_hercules_api_1.

In order to know the requirements and setting up the project and database locally, visit Development Workflow wiki