Skip to content
YC-DevelopersPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Repair Management System (CRPMS)

A comprehensive system for managing car repairs, services, and payments.

Features

  • User authentication and authorization
  • Services management
  • Car records management
  • Service records tracking
  • Payment processing
  • Dashboard with statistics

Tech Stack

Backend

  • Node.js
  • Express.js
  • SQLite (with Sequelize ORM)
  • JWT Authentication

Frontend

  • React
  • React Router
  • TailwindCSS
  • Axios

Project Structure

denyse/
├── backend/             # Node.js Express backend
│   ├── config/          # Configuration files
│   ├── controllers/     # Route controllers
│   ├── middleware/      # Custom middleware
│   ├── models/          # Sequelize models
│   └── routes/          # API routes
│
└── frontend/            # React frontend
    ├── src/
    │   ├── components/  # Reusable components
    │   ├── context/     # React context
    │   ├── pages/       # Page components
    │   └── utils/       # Utility functions
    └── public/          # Static assets

Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Installation

  1. Clone the repository
  2. Install backend dependencies:
    cd backend
    npm install
    
  3. Install frontend dependencies:
    cd frontend
    npm install
    

Running the Application

  1. Start the backend server:
    cd backend
    npm run dev
    
  2. Start the frontend development server:
    cd frontend
    npm run dev
    
  3. Open your browser and navigate to http://localhost:5173

API Endpoints

Authentication

  • POST /api/users/register - Register a new user
  • POST /api/users/login - Login user
  • GET /api/users/profile - Get user profile (protected)

Services

  • GET /api/services - Get all services
  • GET /api/services/:serviceCode - Get service by code
  • POST /api/services - Create a new service (protected)
  • PUT /api/services/:serviceCode - Update a service (protected)
  • DELETE /api/services/:serviceCode - Delete a service (protected)

Cars

  • GET /api/cars - Get all cars
  • GET /api/cars/:phoneNumber - Get car by phone number
  • POST /api/cars - Create a new car (protected)
  • PUT /api/cars/:phoneNumber - Update a car (protected)
  • DELETE /api/cars/:phoneNumber - Delete a car (protected)

Service Records

  • GET /api/service-records - Get all service records
  • GET /api/service-records/:recordNumber - Get service record by ID
  • POST /api/service-records - Create a new service record (protected)
  • PUT /api/service-records/:recordNumber - Update a service record (protected)
  • DELETE /api/service-records/:recordNumber - Delete a service record (protected)

Payments

  • GET /api/payments - Get all payments
  • GET /api/payments/:paymentNumber - Get payment by ID
  • POST /api/payments - Create a new payment (protected)
  • PUT /api/payments/:paymentNumber - Update a payment (protected)
  • DELETE /api/payments/:paymentNumber - Delete a payment (protected)

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages