This is an API that will return 2020 NFL schedule.
This is mainly built to showcase CRUD operations using node.js
, MongoDB
. Also this is deployed to Heroku
.
- Get all schedules -> /schedules
- Get weekly schedules -> /schedules/week/:week
- Insert schedule -> POST /schedules
- Update schedule -> PUT /schedules/:id
- Delete schedule -> DELETE /schedules/:id
- Insert multiple games schedule -> /schedules/insertMany
dotenv package was not used in this app to take advantage of the .env files for DB URL. Instead, heroku cli was installed and local testing was done using the following command.
heroku local web
You will need to rename .env-sample file to .env and replace the MONGODB_URL with the mongodb url for your database connection.