This program is built with Node.js, Postman and MySQL
VsCode, Wampserver64 "phpmyadmin" Make sure port 3001, 3000 is not uses
30 mb
- Make sure you have download the file/clone.
- Open up Wampserver and launch phpmyadmin.
- Create a database call "newsoft".
- Under the menu bar click on import and click on browser.
- Open up newsoft folder,select newsoft.sql.
- Scroll down and click on "Go"
- Open up Vscode
- On the top left corner select File > Open folder
- Select newsoftProject-main folder
- On the top menu bar select view > terminal
- Terminal insert npm start "to start".
- Open up Postman
- enter "http://localhost:3001/info" and select get to get all information in the database
// Create a new Customer
app.post("/info", info.create);
// Retrieve all Customers
app.get("/info", info.findAll);
// Retrieve a single Customer with Id
app.get("/info/:hp", info.findOne);
// Update a Customer with Id
app.put("/info/:id", info.update);
// Delete a Customer with Id
app.delete("/info/:id", info.delete);
Enjoy Coding