Skip to content

Latest commit

History

History
220 lines (140 loc) 路 3.3 KB

File metadata and controls

220 lines (140 loc) 路 3.3 KB

Back to README

Installation guide

Dependencies

You have to install these softwares before starting :

Table of contents

Choose your operating system :

Windows

We recommend using a WSL for this project. If so, please follow the Linux procedure.

A. Requirements

  1. Create a .env file by copying the example file .env.example file. These values are only for the local environment, you can modify it if you want.

  2. Start docker services with the following command

docker-compose up -d
  1. You need to install NodeJS packages
npm install
  1. Generate database schema
npm run prisma:push
  1. Generate data with Prisma seed
npm run prisma:seed

B. Getting Started

  1. Launch the application in development mode
npm run dev
  1. Well done, the application is running!

C. Quality Assurance

  • Run unit tests
npm test
  • Run unit tests with coverage
npm run test:cov

D. Database

  • Reset Prisma database
npm run prisma:reset
npm run prisma:seed

MacOS

A. Requirements

  1. Create a .env file by copying the example file .env.example file. You can modify it if you want.

  2. Start docker services with the following command

docker-compose up -d
  1. You need to install NodeJS packages
npm install
  1. Generate database schema
npm run prisma:push
  1. Generate data with Prisma seed
npm run prisma:seed

B. Getting Started

  1. Launch the application in development mode
npm run dev
  1. Well done, the application is running!

C. Quality Assurance

  • Run unit tests
npm test
  • Run unit tests with coverage
npm run test:cov

D. Database

  • Reset Prisma database
npm run prisma:reset
npm run prisma:seed

Linux

A. Requirements

  1. Create a .env file by copying the example file .env.example file. You can modify it if you want.

  2. Start docker services with the following command

docker-compose up -d
  1. You need to install NodeJS packages
npm install
  1. Generate database schema
npm run prisma:push
  1. Generate data with Prisma seed
npm run prisma:seed

B. Getting Started

  1. Launch the application in development mode
npm run dev
  1. Well done, the application is running!

C. Quality Assurance

  • Run unit tests
npm test
  • Run unit tests with coverage
npm run test:cov

D. Database

  • Reset Prisma database
npm run prisma:reset
npm run prisma:seed