In this tutorial, you will establish a simple server using the json-server node module. At the end of this tutorial, you will be able to:
Resources
2.3.1 How to
1. Download and unzip 'json-server-heroku' from: https://github.com/jesperorb/json-server-heroku
2. Copy 'public/images' folder and 'db.json' file to 'json-server-heroku' folder
3. Create new app <appname> on heroku.com
4. Deploy 'json-server-heroku' to <appname>
$ cd json-server-heroku | |
$ heroku login -i | |
$ git init | |
$ heroku git:remote -a <appname> | |
$ git add . | |
$ git commit -am "make it better" | |
$ git push heroku master |
2.3.2 Testing