Employee Management System
- Clone the repository.
- Change the directory to EMS-Backend using
$ cd EMS-Backend
. - Create a .env file using the format given below.
- On the terminal, run
$ npm i
to install all the dependencies. - Now change the directory to EMS-Frontend using
$ cd EMS-Frontend
, and on the terminal, run$ npm i
to install all the dependencies. - Open SSMS and run the Database.sql script to create the database along with all the tables and stored procedures.
Note: Create your own .env file in the root directory. Here's the format:
PORT = 5000
SECRET_KEY = "Any secret key"
DB_NAME = "EMSDatabase"
DB_HOST = "localhost"
DB_USERNAME = "database username"
DB_PASSWORD = "database password"
DB_PORT = "1433"
To start the backend server
- Change the directory to EMS-Backend.
- Run
$ npm run dev
on the terminal to start the server on port 5000.
To start the frontend server
- Change the directory to EMS-Frontend.
- Run
$ npm start
on the terminal to start the server on port 3000.