- install packages :
npm install
- start the backend application :
npm start
backend app runs onlocalhost:9000
- install packages :
npm install
- start the fronted application :
npm start
frontend app runs onlocalhost:3000
created a simple API that returns a JSON with only one object using Express.js
{
name: "Mehrdad",
lastname: "Khojastefar",
birth: "1380/03/21",
}
created a front end web application using react and bootstrap.
at the start of our app, it fetches the JSON from localhost:9000/testApi
using JSON placeholder it fetches a fake JSON after clicking on the button and loads the data into the application.