Skip to content

hegde-raghavendra/nfl-2020-schedule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFL 2020 schedule API

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.

Endpoints

  1. Get all schedules -> /schedules
  2. Get weekly schedules -> /schedules/week/:week
  3. Insert schedule -> POST /schedules
  4. Update schedule -> PUT /schedules/:id
  5. Delete schedule -> DELETE /schedules/:id
  6. Insert multiple games schedule -> /schedules/insertMany

Local testing

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published