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

Improve configuration management with envconfig #6

Closed kshitij10496 closed 5 years ago

kshitij10496 commented 5 years ago

Currently, the server.go program expects PORT and DATABASE_URL to be set in order to run the application. Use Kelsey Hightower's envconfig library for reading app configuration variables into the program rather than using os.Getenv.

Refer: server.go