GithubHelp home page GithubHelp logo

jmorbegoso / wish-list-api Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 1.8 MB

Backend API built with NestJS using Domain-Driven Design and Clean Architecture.

JavaScript 0.15% TypeScript 99.81% Shell 0.04%
nestjs mikroorm mongodb docker ddd clean-architecture authentication repository-pattern unit-of-work-pattern jest

wish-list-api's Introduction

Wish List API ๐ŸŒŸ

Backend REST API built with NestJS and following the principles of Domain-Driven Design and Clean Architecture


TypeScript badge NestJS badge MongoDB badge Yarn badge Jest badge Docker badge

Wish List API is a backend REST API where you can publish your wishes, share them, and keep them on track, recording the progress you make, until you fulfill them.

โœจ Features

  • Built with TypeScript.
  • Domain-Driven Design (DDD):
    • Value Objects.
    • Entities.
    • Aggregates.
  • Clean Architecture:
    • Domain Layer.
    • Application Layer.
    • Infrastructure Layer.
  • Design Patterns:
  • Command Query Responsibility Segregation (CQRS).
  • ๐Ÿ“บ Presentation:
    • NestJS.
  • ๐Ÿ“š Persistence:
    • MikroORM.
    • MongoDB.
  • ๐Ÿ‘ค Authentication:
    • Passport.js.
    • JWT Access Tokens.
    • Refresh Tokens.
    • Refresh Tokens rotation.
    • Refresh Tokens auto-revocation.
  • ๐Ÿ›ก๏ธ Authorization:
    • User Roles.
    • Resource Ownership.
  • ๐Ÿงช Testing:
    • Jest.
    • Supertest (e2e).
    • Coverage Report: 70%.
  • ๐Ÿ“ Documentation:

โŒš Prerequisites

To run this Backend API make sure you have installed all of the following prerequisites on your machine:

  • Node.js.
  • TypeScript.
  • Yarn.
  • Docker.

๐Ÿ’ป Install

# Environment Variables
cp '.env.example' '.env' # Development
cp '.env.example' '.test.env' # Tests

# Install dependencies
yarn

# Run MongoDB database in Docker ๐Ÿ‹
docker-compose up # Development
docker-compose -f docker-compose.e2e.yml --env-file ./.test.env up # Tests

๐Ÿš€ Running

# Run in development mode
yarn start

# Run in watch mode (development)
yarn start:dev

# Run in production mode
yarn start:prod

๐Ÿงช Tests

# Run tests
yarn test

# Run test coverage
yarn test:cov

# Run tests end to end
yarn test:e2e

๐Ÿง‘โ€๐Ÿ’ป Author

JMOrbegoso

wish-list-api's People

Contributors

jmorbegoso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

huyplb

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.