An open API service indexing awesome lists of open source software.

https://github.com/filipe1309/rs-nodejs-nps-api

This app was developed during NLW 4.0 (Next Level Week), and aims to simulate an NPS (Net Promoter Score) API using NodeJS
https://github.com/filipe1309/rs-nodejs-nps-api

nlw nlw-4 nodejs nps rocketseat typescript

Last synced: 7 months ago
JSON representation

This app was developed during NLW 4.0 (Next Level Week), and aims to simulate an NPS (Net Promoter Score) API using NodeJS

Awesome Lists containing this project

README

          

# 🚀 Rocktseat NodeJS NPS API

This app was developed during NLW 4.0 (Next Level Week), and aims to simulate an NPS (Net Promoter Score) API using NodeJS.

## 💻 Technologies

- [NodeJS](https://nodejs.org/) _(v14.14.0)_
- [Express](https://expressjs.com/)
- [TypeScript](https://www.typescriptlang.org/)
- [Nodemailer](https://nodemailer.com/) _(Email sending)_
- [Ethereal](https://ethereal.email/) _(Fake SMTP service)_
- [TypeORM](https://typeorm.io/#/)
- [Handlebarsjs](https://handlebarsjs.com/) _(Email template)_
- [Yup](https://github.com/jquense/yup) _(Schema validation)_
- [Jest](https://jestjs.io/)
- [Supertest](https://www.npmjs.com/package/supertest)

## 🧰 Architecture

### Database

![alt](diagram.png)

## 💿 Installation

```sh
# Install dependencies
yarn

# Run migrations to create SQLite database
yarn typeorm migration:run
```

## 🏃 Running

```sh
yarn dev
```

## ✅ Tests

```sh
yarn test
```