It is an compliments API developed in Rocketseat - NLW Together with Typescript, nodeJs, Sqlite and Typeorm!
After clone it, just run:
yarn install
or
npm install
To run all migrations and create the tables, just run:
yarn typeorm migration:run
or
npm run typeorm migration:run
Undo it with:
yarn typeorm migration:revert
or
npm run typeorm migration:revert
To run API use:
yarn dev
or
npm run dev
- You can register an user;
- You can authenticate the user;
- You can list users;
- The user need to be authenticate to give or receive a compliment (JWT);
- User admin permission role;
- You can create Tags;
- You can list tags;
- You can create a compliment for another user;
- You can get all compliments a user received;
- You can get all compliments a user sended;
- Orm - Typeorm;
- Migrations;
- Jwt Authentication;
- 1:1 associations;
- 1:n associations;
- SQLite