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 installto install the dependencies. - Copy the
.env.examplefile to.envand set the database environment variables correctly:host, port, user, password, db-name
- Run
npm run devornode ace serve --watch
To deploy the application:
- Run
npm run buildornode ace build --production(production).
- Run
npm run lintoreslint . --ext=.tsto execute code analyser - Run
npm run formatorprettier --write .to execute code formatter