rendivo-backend
v0.1.0
Published
Minimal Express backend for Rendivo connecting to MySQL
Readme
Rendivo Backend (Express + MySQL)
- Copy
.env.exampleto.envand adjust values if needed. - Install dependencies:
npm install. - Start the API:
npm start(ornpm run devwith nodemon).
Key endpoints:
POST /api/auth/register— create a customer account.POST /api/auth/login— sign in and receive a JWT.GET /api/businesses— list active businesses.GET /api/businesses/:id/services— list active services for a business.GET /api/appointments/me— authenticated; fetch customer appointments.POST /api/appointments— authenticated; create an appointment (passserviceIds,appointmentDate,startTime,endTime, optionalnotes,staffId).PATCH /api/appointments/:id/cancel— authenticated; cancel own appointment.PATCH /api/appointments/:id/reschedule— authenticated; update date/time.PATCH /api/appointments/:id/notes— authenticated; update notes.
