typeorm@0.3.10 (with migrations)type-graphql@1.1.1typedi@0.10.0 (For Dependency Injection)jsonwebtoken@8.5.1apollo-server-express@3.11.1class-validator@0.13.2
yarnto install all the dependenciesyarn devto run nodemon development serveryarn buildto compile typescript codeyarn startto run compiled codeTableName=<name> yarn migration:createto create migrationyarn local-migration:runto run migrations in devyarn local-migration:revertto revert migrations in devyarn prod-migration:runto run migrations on productionyarn prod-migration:revertto revert migrations on production
.
βββ dist # Compiled files
βββ src # Source files
β βββ db # All Database related files
β β βββ entities # All Database Entities
β β βββ migrations
β β βββ index.ts # Database Maneger
β βββ errors
β βββ middlewares
β βββ modules # All Modules
β β βββ <name> # Entity Name
β β β βββ <name>.resolver.ts # All queries and Mutation related to the entity
β β β βββ service.ts # Service class of entity
β β β βββ types.ts # Input and Object types for validation
β βββ types # custom types are defined here
β βββ utils # utility functions
β βββ index.ts # Entry point
β βββ apolloServer.ts # Apolloserver setup
βββ ormconfig.ts # DataSource options for typeorm DataScource
βββ .lintstagedrc.json # Lint Staged Options
βββ .prettierrc.json # prettier Options
βββ dist # Pre-Commit Hooks
βββ README.md