Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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