This is a test of the Nettie API.
Heroku hosting: https://nettie-test-api-deploy.herokuapp.com/
-
[YouTube Tutorial]["https://youtu.be/u2Df5A4BS8s"]
-
[Heroku CLI]["https://devcenter.heroku.com/articles/heroku-cli"]
-
npm init -y- creates package.json -
npm install express --save- installs express and saves it to package.json -
npm install nodemon --save-dev- installs nodemon and saves it to package.json -
Add
"start": "nodemon index.js"to package.json -
Add
"engines": { "node": "<YOUR_CURRENT_VERSION>" }to package.json (node --versionto check) -
heroku login- logs into Heroku -
Create a
Procfilewithweb: node index.js -
git init- initializes git -
git add .- adds all files to git -
git commit -m "Initial commit"- commits all files to git -
heroku create <YOUR_NAME_ALL_LOWERCASE?>- creates a Heroku app -
git push heroku master- pushes to Heroku