Website: https://car-platform-giaf.onrender.com
A modular Node.js/Express backend for managing car listings with built-in car specification lookups via an external API.
- Clone the repository and run
npm install. - Create a
.envfile and add:PORT=5090MONGO_URI=mongodb_connection_stringJWT_SECRET=secret_keyCAR_API_TOKEN=tokenCAR_API_SECRET=secret
- Run the server using
npm start.
POST /api/auth/register- Register a new user.POST /api/auth/login- Authenticate user & get token.
GET /api/users/profile- Get current user data.PUT /api/users/profile- Update user information.
GET /api/cars- Get all cars (Public).GET /api/cars/:id- Get specific car details (Public).POST /api/cars- Create a new listing (Private).PUT /api/cars/:id- Update owned listing (Private).DELETE /api/cars/:id- Delete owned listing (Private).