Skip to content

magidmroueh/nestjs-prisma-starter

Repository files navigation

Gitpod Ready-to-Code

NestJS Starter

Description

Simple starter for NestJs, postgres, GraphQl, Prisma application

Installation

$ npm install
$ docker-compose up -d
$ prisma deploy

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Sample Queries

Prisma Admin

  http://localhost:4466/_admin

graphql

  http://localhost:3000/graphql
# Sign-up

mutation {
  signup(signUpInput: { email: "user@email.com", password: "pasword" }) {
    id
    email
  }
}
# Log-in

mutation {
  login(loginInput: { email: "user@email.com", password: "pasword" }) {
    id
    email
  }
}
# Create a Post

mutation {
  createPost(postInput: { title: "Post Title", body: "Post Body" }) {
    id
    title
    author {
      id
      email
    }
  }
}
# Retrieve all Posts

query {
  posts {
    title
    author {
      email
    }
  }
}

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •