Simple starter for NestJs, postgres, GraphQl, Prisma application
$ npm install
$ docker-compose up -d
$ prisma deploy
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
http://localhost:4466/_admin
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
}
}
}
Nest is MIT licensed.