GithubHelp home page GithubHelp logo

mingyang-li / nest-graphql-prisma Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 2.45 MB

⚛️ GraphQL API template with advanced filtering & pagination on top of a PostgreSQL database, powered by NestJS & Prisma 搭配了全套增删查改,过滤参数以及带有订阅数据功能的 GraphQL API

Home Page: https://nest-graphql-prisma-g5s7.onrender.com/graphql

JavaScript 2.70% TypeScript 97.22% Procfile 0.09%
graphql nestjs postgresql prisma supabase nestjs-graphql prisma-graphql

nest-graphql-prisma's Introduction

img

🌱 NestJS + GraphQL + Prisma + PostgreSQL Template

Description

GraphQL API template that supports:

  1. All CRUD purposes with advanced filtering capabilities across all data types for all columns
  2. Disallowing & prohibiting updates on system fields such as createdAt and updatedAt
  3. Offset-based Pagination on Payment table
  4. Subscription for the latest updated/created Payment

Other features:

API in action

image

Installation

$ yarn install

Running the app

# build
$ yarn run build

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Database-related

Hosted DB provider: Supabase

Sadly Heroku will take down all free-tier services from Oct 2022, so I had to find alternative solutions to Heroku Postgres

# Create postgres database in local docker container
1. Download Docker
2. Open it
3. In project root folder run the following command
$ yarn docker:db

# Initialise the database (setting up schema & seeding) - once it has been created in docker
$ yarn db:init

# seeding database
$ npx prisma db seed

nest-graphql-prisma's People

Contributors

dependabot[bot] avatar mingyang-li avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nest-graphql-prisma's Issues

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.