Skip to content

a read-to-deploy to heroku json-server application

Notifications You must be signed in to change notification settings

Nilegfx/jsonserverjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

don't forget to activate your account by clicking the link they will send to your email

Fork this repo

git clone https://github.com/Nilegfx/jsonserverjs.git && cd jsonserverjs

change the content of db.json file (Optional)

Login to heroku

enter your email and password

heroku login

Create a new heroku application

heroku create <<YOUR_APPLICATION_NAME_HERE>>

Force heroku to install both dev and production dependencies before building [IMPORTANT]

heroku config:set NPM_CONFIG_PRODUCTION=false

Push your code to heroku servers (the deployment will start automatically)

don't forget to add and commit your changes (if any)

git push heroku master -f

Ensure that at least one process instance is running

heroku ps:scale web=1

Open your app in the browser and enjoy

heroku open

Check resources

curl https://jsonserverjs.herokuapp.com/posts?_embed=comments

About

a read-to-deploy to heroku json-server application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published