Follow these steps to install the project:
- Clone the repository:
git clone https://github.com/denis-vp/personal-manager-backend.git
- Install the dependencies:
npm install
oryarn install
- Create a .env file in the root directory and add the following environment variables:
PORT
- the port the server will run onSOCKET_PORT
- the port the socket server will run onPOSTGRES_USER
- the username for the Postgres databasePOSTGRES_HOST
- the host for the Postgres databasePOSTGRES_DB
- the name of the Postgres databasePOSTGRES_PASSWORD
- the password for the Postgres databasePOSTGRES_PORT
- the port for the Postgres database
To run use the command npm start
or yarn start
.
To run the tests use the command npm run test
or yarn run test
.