no db project (Hair Appointment Scheduler)
- reset.css ==> eric meyers 2.0 reset
- package.json
- setupProxy.js => 4000
- src/
App.js => class
- index.js
- App.css
- index.css => paste reset
- setUpProxy.js
- components/
- ClientApptCard.js
- ApptList.js
- Button.js
- ClientForm.js
- axios
- http-proxy-middleware
- react-icons
- server/
-index.js
-controller/
-apptController.js
- get:
api/appointments
- post:
api/appointments
- put:
api/appointment/:id
{body: name, contact, apptDate, apptTime, style}
- delete:
api/appointment/:id
app.put(`/api/appointment:id`, (req, res, next) => {
const { name, contact, apptDate, apptTime, style } = req.body;
})
const appointment = {
id: Number,
name: String,
contact: Number
apptDate: Date,
apptTime: Number,
style: String
}