Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielhdezller/catalogue-api
GraphQL API project to manage a catalogue of any kind of product or service following the Nestjs GraphQL schema first approach.
https://github.com/danielhdezller/catalogue-api
graphql nestjs prisma
Last synced: 15 days ago
JSON representation
GraphQL API project to manage a catalogue of any kind of product or service following the Nestjs GraphQL schema first approach.
- Host: GitHub
- URL: https://github.com/danielhdezller/catalogue-api
- Owner: danielhdezller
- Created: 2022-12-19T11:57:19.000Z (about 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-10T22:40:52.000Z (about 2 years ago)
- Last Synced: 2024-11-12T01:43:45.476Z (3 months ago)
- Topics: graphql, nestjs, prisma
- Language: TypeScript
- Homepage:
- Size: 381 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Catalogue API
## Description
Hi π! This is a GraphQL API project to manage a catalogue of any kind of product or service.
My intention is to add new functionalities bit by bit in my free time π€.Note: the project is following the Nestjs GraphQL schema first approach.
## Technologies
[Nest](https://nestjs.com/) a progressive Node.js framework for building efficient, reliable and scalable server-side applications.
[Prisma](https://www.prisma.io/) Next-generation Node.js and TypeScript ORM.
[GraphQL](https://graphql.org/) GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.
[PostgreSQL](https://www.postgresql.org/) The World's Most Advanced Open Source Relational Database.## Docker
```bash
# start the DB
$ cd ./docker
$ docker-compose up
```## Installation
```bash
# install the node modules
$ cd ./project
$ yarn
```## Running the app
```bash
# development
$ yarn start# watch mode
$ yarn start:dev# production mode
$ yarn start:prod
```## Test
```bash
# unit tests
$ yarn test# e2e tests
$ yarn test:e2e# test coverage
$ yarn test:cov
```## Useful commands
### Prisma
```bash
# generate and apply a migration
$ yarn prisma migrate dev --name# start prisma studio
$ yarn prisma studio
```### NestJs
```bash
# generate resource
$ nest generate resource "resource-name"
# then select GraphQl (schema first)
```## Stay in touch
- Author - [Daniel HernΓ‘ndez](https://github.com/danielhdezller)
- LinkedIn - [LinkedIn](https://www.linkedin.com/in/daniel-hernandez-ller/)