Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T09:32:09.000Z (18 days ago)
- Last Synced: 2024-10-28T12:35:13.598Z (18 days ago)
- Topics: bcryptjs, cors, dotenv, express, jsonwebtoken, jwt-authentication, mongoose, multer
- Language: JavaScript
- Homepage:
- Size: 5.61 MB
- Stars: 0
- 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 install5. **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 password2. **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 ID3. **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 ID4. **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