Ps: to run the project make sure you have node version => 16.13.1 installed. If you have different versions, use nvm to install a corresponding version.
- Create the appropriate repository:
mkdir minimundo
- Move to the appropriate directory:
cd minimundo
. - Clone this repository using
git@github.com:minimundo/backend.git
- Move to the appropriate directory:
cd backend
. - Run
npm install
to install the dependencies. - Copy the
.env.example
file to.env
and set the database environment variables correctly:host, port, user, password, db-name
- Run
npm run dev
ornode ace serve --watch
To deploy the application:
- Run
npm run build
ornode ace build --production
(production).
- Run
npm run lint
oreslint . --ext=.ts
to execute code analyser - Run
npm run format
orprettier --write .
to execute code formatter