1.1.7 • Published 3 years ago
doba-template v1.1.7
Installation
Init your project
npm init -y
If you use yarn
yarn init -y
Or you can install it for global
npm install -g doba-template
Install dependencies
If you use npm
npm install --save-dev doba-template
If you use yarn
yarn add -D doba-template
Usage
Run this command
npx doba-template
GraphQL template
.env.example
.gitignore
.prettierrc
package.json
src
|-- Configs
| |-- Logger.ts
|-- Constants
| |-- index.ts
|-- Entities
| |-- User.ts
|-- Middlewares
|-- Models
|-- Resolvers
| |-- Auth.ts
| |-- Hello.ts
|-- Types
| |-- Context.ts
| |-- FieldError.ts
| |-- InputType
| | |-- RegisterInput.ts
| |-- Mutation
| | |-- MutationResponse.ts
| | |-- UserMutationResponse.ts
|-- Utils
| |-- Validation.ts
|-- index.ts
tsconfig.json
yarn.lock
ExpressJS template
.env.example
.gitignore
.prettierrc
package.json
src
|-- Configs
| |-- Logger.ts
| |-- mongoose.ts
|-- Constants
|-- Controllers
|-- Middlewares
|-- Models
|-- Routes
| |-- index.routes.ts
|-- Services
|-- Utils
|-- index.ts
tsconfig.json
yarn.lock