Welcome to the Car Parking System RESTful API! This API provides seamless management of parking spaces, user registration & login, vehicle management, and much more.
- 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.
- CRUD Operations: Users can Create, Read, Update, and Delete their vehicles.
- Vehicle Types: Supports different types of vehicles, ensuring accurate management.
- CRUD Operations: Admins can Create, Read, Update, and Delete parking zones.
- Booking: Users can book parking zones based on availability.
- Secured Endpoints: All endpoints are secured with authentication and authorization mechanisms.
- Token-based Authentication: Uses token-based authentication for secure API access.
- 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.
For detailed API documentation, please refer to API Documentation.
To get started with the Car Parking System API, follow these steps:
- Clone the Repository:
git clone https://github.com/groot737/Car-parking-system.git cd Car-parking-system
- Install packages:
npm install bcrypt date-and-time dotenv express jsonwebtoken mysql nodemailer
- Add environment variables:
DB_HOST = 'db credentials' DB_USER = 'db credentials' DB_PASS = ' db credentials' HOST = 'smtp credentials' LOGIN = 'smtp credentials' PASS = 'smtp credentials'
- First run following files:
node dbconfig.js node event.js