MYSQL CONFIG | NAME |
---|---|
DATABASE | employeeDB |
TABLE | empolyee |
NAME | DATATYPE |
---|---|
id | int(primary) |
name | varchar |
varchar | |
mobile | varchar |
location | varchar |
Run this comment to install node modules for backend.
npm i
After installation is compelete start then backend by applying below command.
node index.js
Run this comment to install node modules for frontend.
cd client
npm i
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm start
ROUTERS | METHOD | PURPOSE |
---|---|---|
http://localhost:4001/api/emp/ | get | getting data |
http://localhost:4001/api/emp/ | post | adding data |
http://localhost:4001/api/emp/delete | post | for delete |
http://localhost:4001/api/emp/:id | put | for update |