This readme provides instructions for installing and running the Bike Service Application. The application consists of both frontend and backend components and uses MongoDB as its database. You have two ways to set up and run the application, either manually or using Docker Compose.
Follow these steps to manually set up the Bike Service Application:
-
Clone the repository:
git clone https://github.com/Aswin2667/Project.git
-
Change into the frontend directory:
cd front-end
-
Install frontend dependencies:
npm install
-
Change into the backend directory:
cd back-end
-
Install backend dependencies:
npm install
-
Make sure MongoDB is installed on your local machine. if you have error when connect to mongo db change the url in .env file from localhost to 127.0.0.1
-
Start the frontend:
npm start
-
Start the backend:
npm start
If you prefer using Docker Compose, follow these steps:
-
Clone the repository:
git clone https://github.com/Aswin2667/Project.git
-
Make sure you have Docker and Docker Compose installed on your local machine.
-
Change into the project directory:
cd Project
-
Run Docker Compose to start both frontend and backend containers:
docker-compose up
- Admin Username: root
- Admin Password: rootroot
A default service is added at the startup of the backend.
API documentation and all schemas are accessible at:
- API Documentation: http://localhost:9090/api-docs
The application uses the following ports:
- Frontend Port: 3000
- Backend Port: 9090
Please ensure that these ports are available and not in use by other applications when running the Bike Service Application.
For any additional information or issues, please refer to the GitHub repository.