Skip to content

jcode06/covid19-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple API I made for a COVID-19 personal project.

Stack:

  • Heroku - API Host
  • AWS DynamoDB - Data persistence layer
  • Node
  • Express

Running Locally

Make sure you have Node.js and the Heroku CLI installed.

npm install
npm start

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

or

Deploy to Heroku

Environment Variables

heroku config must be run for the following variables: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY NODE_ENV=production

AWS Account must be capable of read/write to DynamoDB

Resources

[RESTFUL API on Heroku] (https://devcenter.heroku.com/articles/mean-apps-restful-api)

[Using the Scheduler with NodeJS] (http://www.modeo.co/blog/2015/1/8/heroku-scheduler-with-nodejs-tutorial)

[Connecting to DynamoDB from Heroku] (https://stackoverflow.com/questions/37483221/can-i-use-dynamodb-through-heroku?noredirect=1&lq=1) A barebones Node.js app using Express 4.

COVID Tracking Project for US Data

COVID 19 API for Global Data

This application supports the Getting Started on Heroku with Node.js article - check it out.

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles:

About

My COVID 19 API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published