-
Initalise the project
- yarn init
-
Initalise TypeScript
- npx typescript --init
-
Install dev dependencies
- yarn add typescript ts-node-dev @types/bcrypt @types/jsonwebtoken @types/cookie-parser @types/config -D
-
Install dependencies
- yarn add type-graphql apollo-server [email protected] reflect-metadata @typegoose/typegoose mongoose class-validator bcrypt jsonwebtoken cookie-parser nanoid config dotenv
-
Update tsconfig to include:
{
"target": "es2018",
"module": "commonjs",
"lib": ["es2018", "esnext.asynciterable"],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strictPropertyInitialization": false
}
Search course with tests