Project name: Codempire Cafe.
- Typescript
- Client: React, redux-toolkit, redux-toolkit-query, styled-components
- Api: Nest.js, nestjs/passport, swagger
web/.env api/.env
For the successful run of the project application and their further correct functioning, it is necessary to insert the above files.
The application is not deployed.
-
$ git clone {repository link}
; -
install dependencies:
$ npm install
(ideally done once); -
create Postgres Database and fill the required api/.env file according to the example below:
- POSTGRES_LOCAL_HOST={host}
- POSTGRES_PORT={port}
- POSTGRES_USER={user}
- POSTGRES_PASSWORD={password}
- POSTGRES_DB={database-name}
- PORT=5000
- JWT_SECRET={jwt}
-
create web/.env file according to the example below:
- REACT_APP_API_URL={api-url}
web:
$ npm run start
api:
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod