Skip to content

groot737/Car-parking-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Parking System RESTful API

Car Parking System

Welcome to the Car Parking System RESTful API! This API provides seamless management of parking spaces, user registration & login, vehicle management, and much more.

Features

User Management

  • User Registration & Login: Allows users to register an account and log in securely.
  • Password Recovery: Enables users to recover their account password through a secure process.
  • Admin Privileges: Admin users have special privileges for managing the system.

Vehicle Management

  • CRUD Operations: Users can Create, Read, Update, and Delete their vehicles.
  • Vehicle Types: Supports different types of vehicles, ensuring accurate management.

Parking Zones Management

  • CRUD Operations: Admins can Create, Read, Update, and Delete parking zones.
  • Booking: Users can book parking zones based on availability.

Security

  • Secured Endpoints: All endpoints are secured with authentication and authorization mechanisms.
  • Token-based Authentication: Uses token-based authentication for secure API access.

Financial Management

  • Deduct Money Every Hour: Automatically deducts money from user accounts every hour of parking.
  • View Parking History: Allows users to view their parking history and payment details.

API Documentation

For detailed API documentation, please refer to API Documentation.

Getting Started

To get started with the Car Parking System API, follow these steps:

  1. Clone the Repository:
    git clone https://github.com/groot737/Car-parking-system.git
    cd Car-parking-system
    
  2. Install packages:
    npm install bcrypt date-and-time dotenv express jsonwebtoken mysql nodemailer
    
  3. Add environment variables:
    DB_HOST = 'db credentials'
    DB_USER = 'db credentials'
    DB_PASS = ' db credentials'
    HOST = 'smtp credentials'
    LOGIN = 'smtp credentials'
    PASS  = 'smtp credentials'
    
  4. First run following files:
    node dbconfig.js
    node event.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published