This project is a study to implement clean architecture, using NodeJs and TypeScript
Features • Requirements • Technologies • Architecture • Author
- ✅ Using the in-memory database 💾
- ✅ Using MongoDb with mongoose
- ✅ Create a new user
- ✅ Validate if the email is real
- ✅ Find user by email
- ✅ Send mailtrap (smtp)
- ✅ Login User
- ✅ Add JWT
- ✅ Show me in new route
- ✅ Using TypeORM (MYSQL or POSTGRE)
- ✅ Configure swagger
- ✅
Error middlewareError Handling - ✅ Refactor the code :)
- 🔲 Implement cors
- 🔲 Apply test
Before starting, you must have installed.
As I believe that nothing can be done alone :)
One of the options I configured as ORM was the famous typeorm.
In order for you to use typeorm's features, configure the project's setup following the guidelines on the official website.
In package.json I configured the commands to generate and run the migrations in your database.
Generate
yarn migration:generation # To generate all migrations based on the entities
Run
yarn migration:run # This command create the tables in the database
Aqui vou explicar como você pode utilizar o swagger nesta apicação.
🙈 I'm still writing
For this application I am using VITEST
Leandro Freitas
Leandro Freitas ✋ contact!