https://github.com/ritik046/projectai
This Car Management System, built with the MERN stack (MongoDB, Express, React, Node.js), allows users to sign up, log in, and browse a collection of available cars. Users can also add, update, and delete their car listings. The frontend is hosted on Netlify, while the backend API is served via Render.
https://github.com/ritik046/projectai
bcrypt-hashing-library css express fullstack javascript jwt-authentication mongodb nodejs reactjs
Last synced: 3 months ago
JSON representation
This Car Management System, built with the MERN stack (MongoDB, Express, React, Node.js), allows users to sign up, log in, and browse a collection of available cars. Users can also add, update, and delete their car listings. The frontend is hosted on Netlify, while the backend API is served via Render.
- Host: GitHub
- URL: https://github.com/ritik046/projectai
- Owner: Ritik046
- Created: 2025-01-29T20:35:23.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-29T21:04:06.000Z (5 months ago)
- Last Synced: 2025-01-29T21:28:15.795Z (5 months ago)
- Topics: bcrypt-hashing-library, css, express, fullstack, javascript, jwt-authentication, mongodb, nodejs, reactjs
- Language: JavaScript
- Homepage: https://spyneaii.netlify.app
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# First Started with Create React App
# npm install
install all the required devDependencies# npm start
Starts the development server.Access the app at http://localhost:3000.
Any changes will make automatically reload the page# npm test
Runs to check for issues in your components.# npm run build
for creating app for production# Backend Part-
# Set Up the Backend:
The backend is built using Node.js and Express.
It communicates with a database (e.g., MongoDB) to store car details, user details etc.
The API endpoints handle different operations like User Authentication, Car Management, and Global Search.# API Endpoints:
POST /auth/signup: Register a new user.
POST /auth/login: Authenticate a user and return an access token.
POST /cars/create: Adds a new car for the logged-in user.
GET /cars: Retrieves all cars for the logged-in user.
GET /cars/:id: Fetches details for a specific car by its ID.
PUT /cars/update/:id: Updates car details such as title, description, images, and tags.
DELETE /cars/delete/:id: Deletes a specific car by its ID.# Database Operations:
MongoDB stores user data and car records with Mongoose as the ODM.
CRUD operations are performed for car records and user accounts.# Authentication & Authorization:
JWT tokens are used to secure routes and ensure users manage only their cars.# Image Handling:
Multer middleware handles image uploads, with validation for up to 10 images per car.# Environment Variables:
.env file contains secrets like database URLs and JWT keys for secure environment configuration.# Error Handling:
Comprehensive error handling for validation issues and server/database errors ensures robust operation.







