An open API service indexing awesome lists of open source software.

https://github.com/sirsayed98/cmp-database-project


https://github.com/sirsayed98/cmp-database-project

Last synced: 9 days ago
JSON representation

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