Setup a back end server for the previous application. This needs to be a separate application. Create CRUD APIs (REST) for user model. Store data in JSON file. Use that as source of data. UI functionality should remain same. Everything should be in TS. Use express for REST APIs. Push the code to a separate repo on github. Generate a PR for review.
Setup a postgres DB for the previous application. Replace JSON with the new DB created. Push the code to the repo on github. Generate a PR for review.
- Express
- ES6
- nodemon for server restart
- CORS to follow CORS policy
inside folder server run
npm install
npm run dev
inside folder client run
npm install
npm start
run client on http://localhost:8080/ as it is used in CORS- Create db entries and run db at port http://localhost:5432