Project developed during the Nodejs trail in the 4th edition of Next Level Week provided by [Rocketseat].
# Clone this project
$ git clone [email protected]:caioagiani/nodejs-nlw4.git
# Open folder
$ cd nodejs-nlw4
# Install dependencies
$ yarn install
# Set up variable environments
$ cp .env.example .env
# Execution permission arrow in script
$ sudo chmod x src/scripts/database.sh
# Start database postgress with docker
$ yarn dev:db
# Create database table
$ yarn typeorm migration:run
# Run application
$ yarn dev
# Run tests
$ yarn dev:test
caio-agiani in nlw4 on -> master ❯ yarn dev:test
yarn run v1.22.5
$ NODE_ENV=test jest --setupFiles dotenv/config --detectOpenHandles --forceExit
PASS __tests__/Mail.test.ts (6.397 s)
PASS __tests__/Answer.test.ts
PASS __tests__/Nps.test.ts
PASS __tests__/Survey.test.ts
PASS __tests__/User.test.ts
Test Suites: 5 passed, 5 total
Tests: 13 passed, 13 total
Snapshots: 0 total
Time: 13.429 s
Ran all test suites.
Done in 15.43s.