This is a RESTful API built with Node.js, Express, and MongoDB for managing car repair data. It allows you to create, read, update, and delete car repair records.

- Node.js (v14 or later)
- MongoDB (v4 or later)
1.Clone the repository:
git clone https://github.com/tushcmd/garage-server.git2.Navigate to the project directory:
cd garage-server3.Install the dependencies:
npm install4.Create a .env file in the root directory and add the following environment variables:
PORT=8080
mongoDBURL=xxxxxxxxxxxxxxxxReplace the mongoDBURL value with your MongoDB connection string.
1.Start the development server:
npm run devThis will start the server using nodemon for automatic reloading on code changes.
2.The API will be accessible at http://localhost:8080.
- GET /cars: Retrieve a list of all cars
- GET /cars/:id: Retrieve a specific car by ID
- POST /cars: Create a new car record
- PUT /cars/:id: Update an existing car record
- DELETE /cars/:id: Delete a car record
- Node.js
- Express
- MongoDB
- Mongoose
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
render.com
This project is licensed under the MIT License.