Skip to content

gus3inov/ecommerce-gdg-server

Repository files navigation

eCommerce GDG server

Project structure

File name                Description         

├── .env Defines environment variables
├── .graphqlconfig.yml Configuration file based on graphql-config (e.g. used by GraphQL Playground).
└── database (directory) Contains all files that are related to the Prisma database service
├── prisma.yml The root configuration file for your Prisma database service (docs)
└── datamodel.graphql Defines your data model (written in GraphQL SDL)
└── src (directory) Contains the source files for your GraphQL server
├── index.ts The entry point for your GraphQL server
├── schema.graphql The application schema defining the API exposed to client applications
└── generated (directory) Contains generated files
├── prisma.ts The generated TypeScript bindings for the Prisma GraphQL API
└── prisma.grapghql The Prisma database schema defining the Prisma GraphQL API

Git flow

Name Description
create(name) Creating new file/schema/layer
feature(<function>) Adding new functionality at the application level
refactor Code refactoring
update(<function>) Functionality Modifications
docs(<function>) Everything related to the documentation
style Correction of typos, formatting
test<function> Everything related to testing
chore Code Maintenance
remove(<function>) All that is related to deletion (functionality, modules, packages, etc.)
config(<module>) Configuration of the database, module, API, etc.
add/<name_module> Adding a module
update/<name_module> Updating the module
remove/<name_module> Removing Module

Generate prisma bindings

prisma-binding --language typescript --input src/generated/prisma.graphql --outputBinding src/generated/prisma.ts

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published