- Async/Await
- Promises
- Fetch
- Render
-
Create .env file or copy the .env.template and rename it to .env
-
Modify the variables adding your url
npm install
npm i json-server -D
npm run dev
To add the following command in the script section of the package.json file (the port is optional), make modifications as follows:
"server": "json-server server/db.json --port 3001"
Finally execute the following script to run the json-server
npm run server
Regards.