https://github.com/mehradi-github/ref-graphql-devops-2406
Backend project with CI/CD
https://github.com/mehradi-github/ref-graphql-devops-2406
docker docker-compose graphql jenkins linux nestjs nodejs postgresql prisma
Last synced: 3 months ago
JSON representation
Backend project with CI/CD
- Host: GitHub
- URL: https://github.com/mehradi-github/ref-graphql-devops-2406
- Owner: mehradi-github
- License: mit
- Created: 2024-06-13T12:01:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T14:15:33.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T07:12:04.729Z (over 1 year ago)
- Topics: docker, docker-compose, graphql, jenkins, linux, nestjs, nodejs, postgresql, prisma
- Language: TypeScript
- Homepage:
- Size: 219 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Graphql with Nestjs and CI/CD
Implemented data query and manipulation APIs with Docker, Node, PostgreSQL, NestJS, Prisma, GraphQL.
- [Graphql with Nestjs and CI/CD](#graphql-with-nestjs-and-cicd)
- [Creating the backend server](#creating-the-backend-server)
- [Add GraphQL support](#add-graphql-support)
- [Setting up Prisma](#setting-up-prisma)
## Creating the backend server
```sh
npm i -g @nestjs/cli
nest new ref-fullstack-2406
$ cd ref-fullstack-2406
$ npm run start:dev
```
## Add GraphQL support
```sh
npm i @nestjs/graphql @nestjs/apollo @apollo/server graphql
nest g resource todo
```
## Setting up Prisma
```sh
npm i -D prisma
npx prisma init
# npx prisma init --datasource-provider postgresql
# after add model
npx prisma migrate dev --name initialize
npx prisma generate
```