Giter Club home page Giter Club logo

clean-arch-ts-node's Introduction

NodeJS, TypsScript with SOLID

This project is a study to implement clean architecture, using NodeJs and TypeScript

FeaturesRequirementsTechnologiesArchitectureAuthor

About clean Arch

Features

  • ✅ 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 middleware Error Handling
  • ✅ Refactor the code :)
  • 🔲 Implement cors
  • 🔲 Apply test

Requirements

Before starting, you must have installed.

🛠 Technologies

As I believe that nothing can be done alone :)

TypeOrm

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

Swagger

Aqui vou explicar como você pode utilizar o swagger nesta apicação.

Running The Application

Debugging

Changing Connections

Architecture

🙈 I'm still writing

Introduction Test

For this application I am using VITEST

Author



Leandro Freitas

Leandro Freitas ✋ contact!

Twitter Badge

Linkedin Badge

Gmail Badge


clean-arch-ts-node's People

Contributors

leandrodavimg avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.