https://github.com/prasanth2817/mybarber-app-backend
MyBarber Application is an application built for users to book and manage appointments at salons. Users can select stylists, services, and specific dates and times. Business users have a separate dashboard for managing appointments and services.
https://github.com/prasanth2817/mybarber-app-backend
bcryptjs cors dotenv express jsonwebtoken jwt-authentication mongoose multer
Last synced: about 2 months ago
JSON representation
MyBarber Application is an application built for users to book and manage appointments at salons. Users can select stylists, services, and specific dates and times. Business users have a separate dashboard for managing appointments and services.
- Host: GitHub
- URL: https://github.com/prasanth2817/mybarber-app-backend
- Owner: prasanth2817
- Created: 2024-07-10T12:55:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-17T08:59:42.000Z (about 1 year ago)
- Last Synced: 2025-05-17T09:33:13.352Z (about 1 year ago)
- Topics: bcryptjs, cors, dotenv, express, jsonwebtoken, jwt-authentication, mongoose, multer
- Language: JavaScript
- Homepage: https://mybarber-app-backend.onrender.com
- Size: 5.64 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyBarber Application Backend
MyBarber Application is an application built for users to book and manage appointments at salons. Users can select stylists, services, and specific dates and times. Business users have a separate dashboard for managing appointments and services.
## Features
- User authentication and authorization
- Booking and managing salon appointments
- Selecting stylists and services
- Specifying appointment dates and times
- Business dashboard for managing appointments and services
- Integration with MongoDB for data storage
## Technology Stack
- **Backend Framework:** Node.js, Express.js
- **Database:** MongoDB, Mongoose
- **Authentication:** JWT (JSON Web Token)
- **Other Tools:** Git, Postman for API testing
## Getting Started
### Prerequisites
- Node.js
- MongoDB
- Git
### Installation
1. **Clone the repository:**
- git clone https://github.com/prasanth2817/MyBarber-App-Backend.git
- cd MyBarber-App-Backend
3. **Install Dependies**
- npm install
5. **Set Up Environment Variable**
- MONGODB_URI=your_mongodb_uri
- JWT_SECRET=your_jwt_secret
- PORT=8000
7. **Start the Server**
- npm strat
### API Endpoints
1. **User Routes**:
- POST /api/users/register - Register a new user
- POST /api/users/login - Login a user
- PUT /api/users/reset-password - reset a user password
2. **Store Routes**:
- POST /api/stores - Create a new store
- GET /api/stores/:storeId - Get a store by ID
- PUT /api/stores/:storeId - Update a store by ID
- DELETE /api/stores/:storeId - Delete a store by ID
3. **Service Routes**:
- POST /api/services - Create a new service
- GET /api/services/store/:storeId - Get all services by store ID
- PUT /api/services/:serviceId - Update a service by ID
- DELETE /api/services/:serviceId - Delete a service by ID
4. **Appointment Routes**:
- POST /api/appointments/create - Create a new appointment
- GET /api/appointments/store/:appointmentId - Get an appointment by storeID
- GET /api/appointments/user/:appointmentId - Get an appointment by userID
- PUT /api/appointments/:appointmentId - Update an appointment by ID
- DELETE /api/appointments/:appointmentId - Delete an appointment by ID