https://github.com/sirsayed98/cmp-database-project
https://github.com/sirsayed98/cmp-database-project
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sirsayed98/cmp-database-project
- Owner: sirSayed98
- Created: 2023-12-06T12:56:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-10T17:32:16.000Z (over 2 years ago)
- Last Synced: 2025-10-25T17:43:07.559Z (9 months ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Database Management Project: Company Database
###### The purpose of this project is to provide students with a hands-on experience in developing a database management system using SQL, Node.js, and creating APIs. The project focuses on building a simple company database, allowing students to practice their skills in database design, SQL queries, and implementing a server-client architecture.
### How to Run the Project
- Create .env file in the main root with the following attributes
```sh
DB_HOST =
DB_USER =
DB_PASSWORD =
DB_NAME =
DB_PORT =
APP_PORT = 3000
```
- install node througth https://nodejs.org/en
to check node is installed correctly run:
```sh
node -v
```
- install dependencies
```sh
npm install
```
- to create tables
```sh
npm run create-tables
```
- to seed database
```sh
npm run seed
```
- to run server
```sh
npm run start
```
- to run client
install live server vscode extension https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer