Skip to content

J-e-e-t/parking-management-system-dbms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parking Management System

A simple application to manage parking spaces

Requirements

Installation

Instructions shown here for mysql linux version

  • Create Database User 'parkingAPI': (Login as root: sudo mysql -u root)
    • Create user: CREATE USER 'parkingAPI'@'localhost' IDENTIFIED BY 'password';
    • Grant permissions to user on DB 'parkingMS': GRANT ALL PRIVILEGES ON parkingMS . * TO 'parkingAPI'@'localhost';
  • Setup application and database:
     
     cd dbms-parking
     npm install
     echo 'create database parkingMS;' | mysql -u parkingAPI --password=password
     # Create Relational tables
     mysql --user=parkingAPI --password=password parkingMS < db/relations.sql
     # Create Trigger for bill calculation on vehicle exit: 20 + (5 per hr)
     mysql --user=parkingAPI --password=password parkingMS < db/trigger.sql

Usage

Run app:

node server.js

Create employees to add parking spaces associated with them before doing vehicle entry in the app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published