Skip to content

mirik999/ecomm-api

Repository files navigation

Bootstrap

This project was created and maintained by Mirik999
Package manager (preferable to use yarn)

yarn installation packages
yarn start:dev start development

Export keys from (src/config/personal.data.ts)

 export const JWT_SECRET_KEY = '';
 export const DATABASE_NAME = '';

Project also required to run MongoDB and Redis

General Information

API design: GraphQL

Folder structure

|-src  
|--common ( contains reusable types )
|----request ( for incoming request data )  
|----response ( for response data )  
|--routes ( all endpoints )
|----example ( endpoint )
|------request ( for incoming request data )
|------response ( for response data )
|------example.module.ts ( module for this endpoint )
|------example.resolver.ts ( "controller", "routes" )
|------example.schema.ts ( Database (MongoDB) schema )
|------example.gateway.ts ( websockets )
|------example.service.ts ( business logic )
|--utils ( contains all third party helpers )
|--app.module.ts ( entry module )
|--main.ts ( entry file )
|-.prettierrc ( for single coding rule / must have )

This project was bootstrapped with NestJS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published