Deploying to Heroku
During your development process you will need to deploy your API code to a remote server. There are plenty of options but one of the best (free) options is to use Heroku.
Installation
Start by creating an account then install the commandline tools:
MacOS
$ brew install heroku/brew/heroku
Linux
$ wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
Logging In
$ heroku login
Enter your Heroku credentials:
Email: johndoe@gmail.com
Password: *********
Logged in as johndoe@gmail.com
$ heroku create notes-api-test
Creating ⬢ notes-api-test... done
https://notes-api-test.herokuapp.com/ | https://git.heroku.com/notes-api-test.git
$ git remote add heroku https://git.heroku.com/notes-api-test.git
$ git remote -v
$ git push heroku master
$ heroku ps:scale web=1
$ heroku logs --tail
To get your Heroku API token:
$ heroku auth:token