Skip to content

alioshr/clean-node-ts

Repository files navigation

clean-node-ts

Build Status Coverage Status Known Vulnerabilities js-standard-style

This is a case study of the implementation of an API with Typescript and Nodejs

Index

Implementation Status

  • 🚧 Ongoing
  • ✅ Done
  • ⛔ Not started

Diagrams built per use case

  1. 🚧 Sign Up
  2. Login
  3. Build a survey
  4. List surveys
  5. Answer survey
  6. Results of the survey

APIs built per use case

  1. 🚧 Sign Up
  2. 🚧 Login
  3. Build a survey
  4. List surveys
  5. Answer survey
  6. Results of the survey

Principles

  • Single Responsibility Principle (SRP)
  • Open Closed Principle (OCP)
  • Liskov Substitution Principle (LSP)
  • Interface Segregation Principle (ISP)
  • Dependency Inversion Principle (DIP)
  • Separation of Concerns (SOC)
  • Don't Repeat Yourself (DRY)
  • You Aren't Gonna Need It (YAGNI)
  • Keep It Simple, Silly (KISS)
  • Composition Over Inheritance
  • Small Commits

Design Patterns

  • Factory
  • Adapter
  • Composite
  • Decorator
  • Proxy
  • Dependency Injection
  • Abstract Server
  • Composition Root
  • Builder
  • Singleton

Methodologies and Designs

  • TDD
  • Clean Architecture
  • DDD
  • Conventional Commits
  • GitFlow
  • Modular Design
  • Dependency Diagrams
  • Use Cases
  • Continuous Integration
  • Continuous Delivery
  • Continuous Deployment

Libs and Tools

  • NPM
  • Typescript
  • Git
  • Docker
  • Jest
  • MongoDb
  • Travis CI
  • Swagger
  • Bcrypt
  • JsonWebToken
  • Faker
  • Coveralls
  • Validator
  • Express
  • Apollo Server Express
  • Graphql
  • Graphql ISO Date
  • Supertest
  • Husky
  • Lint Staged
  • Eslint
  • Standard Javascript Style
  • Nodemon
  • Rimraf
  • In-Memory MongoDb Server
  • MockDate
  • Module-Alias
  • Copyfiles
  • Npm Check
  • Bson ObjectId
  • Apollo Server Integration Testing

Node Features

  • Documentation with Swagger
  • API Rest with Express
  • GraphQL with Apollo Server
  • Error logger
  • Security (Hashing, Encryption e Encoding)
  • CORS
  • Middlewares
  • Access level on routes (Admin, User e Anonymous)
  • Deploy at Heroku
  • Serve static files

GraphQL Features

  • Types
  • Queries
  • Mutations
  • Resolvers
  • Directives
  • Scalars
  • Plugins

Typescript Features

  • Advanced Object Oriented programming
  • Interface
  • TypeAlias
  • Namespace
  • Utility Types
  • Paths module
  • Configurations
  • Build
  • Deploy
  • Use of breakpoints

Tests Features

  • Unit tests
  • Integration tests (API Rest & GraphQL)
  • Test coverage
  • Test Doubles
  • Mocks
  • Stubs
  • Spies
  • Fakes

MongoDb Features

  • Connect e Reconnect
  • Collections
  • InsertOne e InserMany
  • Find, FindOne e FindOneAndUpdate
  • DeleteMany
  • UpdateOne
  • Aggregation (Match, Group, Unwind, Lookup, AddFields, Project, Sort)
  • ObjectId
  • Upsert e ReturnOriginal
  • Push, Divide, Multiply, ArrayElemAt, Cond, Sum
  • Filter, Map, Reduce, MergeObjects, ConcatArrays

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published