https://github.com/caioagiani/nodejs-nlw4
API Rest | NextLevelWeek#4 - @rocketseat
https://github.com/caioagiani/nodejs-nlw4
api docker eslint express jest nextlevelweek nlw4 nodejs postgresql prettier rocketseat typescript
Last synced: about 2 months ago
JSON representation
API Rest | NextLevelWeek#4 - @rocketseat
- Host: GitHub
- URL: https://github.com/caioagiani/nodejs-nlw4
- Owner: caioagiani
- Created: 2021-02-28T17:01:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-19T18:24:26.000Z (6 months ago)
- Last Synced: 2025-03-23T11:42:05.283Z (2 months ago)
- Topics: api, docker, eslint, express, jest, nextlevelweek, nlw4, nodejs, postgresql, prettier, rocketseat, typescript
- Language: TypeScript
- Homepage: http://nextlevelweek.com
- Size: 65.4 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
NLW#4 | Nodejs




Project developed during the Nodejs trail in the 4th edition of Next Level Week provided by [Rocketseat].
![]()
## Technologies used








## Start application
```bash
# 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
```## Tests
```javascript
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.tsTest 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.
```## Contact
- [LinkedIn](https://www.linkedin.com/in/caioagiani/)
- [email protected]