You can create a fake Restfull API of your mocks to improve your front-end development using only JSON.
Take a look on our Back-end Application to manage your mocks!
This application fully supports the Heroku article.
- Implement the Back-end Application to manage your mocks
- Access
/mock-server-front/src/constants/index.js
. Edit the file and change the URI of your mock-server:export const api = 'https://your-url.com/mock-server' // just change it to your URI;
We gonna use Node on Heroku. You must have Heroku CLI installed.
$ heroku create # or heroku create project-name
$ git push heroku master
$ heroku open
You must have the following applications installed:
$ git clone https://github.com/daniloluca/mock-server-front # or clone your own fork
$ cd mock-server-front
$ npm install
$ npm start
Your app should now be running on localhost:3000.