Skip to content

5achinJani/graphql-prisma

Repository files navigation

Tools

  • graphql-yoga: 🧘 Fully-featured GraphQL Server with focus on easy setup, performance & great developer experience
  • Prisma: Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB)
  • Backpack: minimalistic build system for Node.js projects.
  • Now.sh v2: To host GraphQL server.
  • graphql-shield: 🛡 A GraphQL tool to ease the creation of permission layer.
  • aws-elasticbeanstalk: Deploy/Host your graphql server on AWS elasticbeanstalk

Other features

Prerequisite

  • Node stable version. Preferred: Use nvm: Node Version Manager.

Usage

  • create .development.env , .test.env , and .production.env file according to .development.example.env
  • yarn (npm if you want)
  • yarn dev - To start the development server with debug mode.
  • yarn dev-deploy / yarn test-deploy /yarn prod-deploy - to generate the buld and deploy prisma server and graphql server

Global CLI installation:

  • aws-cli: Required if you're using S3 to upload files.
  • aws-elasticbeanstalk: Required if you're deploying your GraphQL server on aws-elasticbeanstalk.

-Other commands

  • To generate the build
    "dev-build": "NODE_ENV=development yarn build",
    "test-build": "NODE_ENV=test yarn build",
    "prod-build": "NODE_ENV=production yarn build",
  • To deploy prisma
    "prisma-deploy-dev": "prisma deploy  --env-file .development.env",
    "prisma-deploy-test": "prisma deploy --env-file .test.env",
    "prisma-deploy-prod": "prisma deploy --env-file .production.env",

About

Project setup/structure for getting started with GraphQL + Prisma + Now.sh/elasticbeanstalk and Backpack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published