Skip to content

HunGARE/hercules

 
 

Repository files navigation

hercules

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

Motivation

  • No more ad-hoc scrapping code.
  • No more JSON files in projects.
  • Single source of truth for all the projects.
  • Building stuff should be a fun and creative process and shouldn't be hampered by the difficulty in the procurement of data.

Implementation

  • I've tried to use microservices as extensively as possible without trying to enfore the design pattern. Each service is responsible for a logical data entity and the corresponding table in the DB.

  • Inter service communication is currently carried over HTTP via SendToService function.

  • The common package provides the minimal scafolding which should be share across all the services. Essentially, it houses the data types, custom errors, database queries and the server interface.

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:

  • Keep the DB updated: Schedule the scrapping of data from the source links and triage.
  • Testing handlers, unit testing models and functional testing services.
  • Deploy services after writing docker-compose.

About

The mighty hero helping you build projects on top of IIT Kharagpur's data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 86.2%
  • Python 13.0%
  • Other 0.8%