Name | Description |
---|---|
PostgreSQL |
Relational Database |
Clone dev
branch into your personal repository. Clone it to local computer. Install node modules. Before starting development, you should check if there are any errors.
With https:
git clone https://github.com/MichaelLemaire10/nest-bookmark.git
npm install
npm run dev
With ssh:
git clone git@github.com:MichaelLemaire10/nest-bookmark.git
npm install
npm run dev
yarn db:dev:restart
Then you need to fill your .env file with environment variables.
cp .env.example .env
First you need to have two database local or remote.
For local with docker:
Open your .env file and add these lines to your .env file: (You can find user and password of the database in the docker-compose.yaml)
DATABASE_URL = postgresql://dev:dev@localhost:55432/test
JWT_SECRET = addyourlongsecretstring
To start the project as dev :
yarn start:dev
To launch tests :
yarn test:e2e