Coder Social home page Coder Social logo

nestjs-express-graphql-typeorm-passport-cqrs-starter's Introduction

Nest Express Graphql CQRS Example Starter Repo

WIP

An example repo demonstrating how to put together a fully containerized modern NestJS CRUD API with some cool/useful features including:

  • Docker for containerization
  • Database integration with TypeORM
  • CQRS using NestJS
  • GraphQL using apollo-server-express
  • Authentication using Passport

With planned support for:

  • User Group/Role Authorization with role-acl
  • Email using Sendgrid
  • CI/CD with CircleCI
  • Automated testing (including integration and regression tests for GraphQL API routes)
  • and much more.

Usage (quick start)

  1. clone the repo
  2. npm install
  3. Setup temp environment configs
  • Run in CLI from project root ./setenv.test.sh
  • Imporant: when deploying your app, don't use the .env file, set vars in your CI provider or container manager
  1. docker-compose up
  • This will spin up Postgres, PGAdmin, and Redis
  • To stop them, and remove local volumes: docker-compose down -v
  1. Start up app in developer mode (will watch and recompile for changes)
  • npm run start
  1. Open browser tab to Postgres Admin for Postgres Admin
  • click on "Servers" and then "Object > Create > Server"
  • "General > Name" the connection "Test Server"
  • click on "Connection" tab:
    • Host: postgres (network exposed by docker-compose)
    • Password: yourPostgresPassword
  • click on "Save"
  • traverse "Servers > Test Server > Databases > yourPostgresDb > Schemas > public"

nestjs-express-graphql-typeorm-passport-cqrs-starter's People

Contributors

chrisjagoda avatar

Stargazers

 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.