├── .gitignore ├── .vscode ├── launch.json ├── settings.json └── tasks.json ├── Dockerfile ├── README.md ├── data ├── todos.json ├── todos.test.json ├── users.json └── users.test.json ├── docker-compose.yml ├── nginx-ha ├── Dockerfile └── nginx.conf ├── package.json ├── pm2.json ├── pm2.yml ├── public └── index.html ├── src ├── app.ts ├── config.test.ts ├── config.ts ├── controllers │ ├── auth.controller.ts │ ├── todo.controller.ts │ └── user.controller.ts ├── interfaces │ ├── irequest.ts │ ├── itodo.model.ts │ ├── itodo.ts │ └── iuser.ts ├── ioc │ ├── ioc.config.ts │ └── loader.ts ├── middlewares │ ├── auth.middleware.1.ts │ ├── auth.middleware.ts │ └── types.ts ├── resources │ ├── todo.resources │ │ ├── itodo.resource.ts │ │ ├── todo.fs.resource.ts │ │ └── todo.mongo.resource.ts │ ├── types.ts │ └── user.resources │ │ └── user.fs.resource.ts ├── schemas │ └── todo.schema.ts ├── server.ts ├── services │ ├── mongo.service.ts │ ├── todo.service.ts │ ├── token.service.ts │ ├── types.ts │ └── user.service.ts └── tests │ ├── api │ ├── auth.api.test.ts │ ├── todos.api.test.ts │ └── users.api.test.ts │ └── unit │ └── user.service.test.ts ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/README.md -------------------------------------------------------------------------------- /data/todos.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/data/todos.json -------------------------------------------------------------------------------- /data/todos.test.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /data/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/data/users.json -------------------------------------------------------------------------------- /data/users.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/data/users.test.json -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /nginx-ha/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/nginx-ha/Dockerfile -------------------------------------------------------------------------------- /nginx-ha/nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/nginx-ha/nginx.conf -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/package.json -------------------------------------------------------------------------------- /pm2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/pm2.json -------------------------------------------------------------------------------- /pm2.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/pm2.yml -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/public/index.html -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/config.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/config.test.ts -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/controllers/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/controllers/auth.controller.ts -------------------------------------------------------------------------------- /src/controllers/todo.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/controllers/todo.controller.ts -------------------------------------------------------------------------------- /src/controllers/user.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/controllers/user.controller.ts -------------------------------------------------------------------------------- /src/interfaces/irequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/interfaces/irequest.ts -------------------------------------------------------------------------------- /src/interfaces/itodo.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/interfaces/itodo.model.ts -------------------------------------------------------------------------------- /src/interfaces/itodo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/interfaces/itodo.ts -------------------------------------------------------------------------------- /src/interfaces/iuser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/interfaces/iuser.ts -------------------------------------------------------------------------------- /src/ioc/ioc.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/ioc/ioc.config.ts -------------------------------------------------------------------------------- /src/ioc/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/ioc/loader.ts -------------------------------------------------------------------------------- /src/middlewares/auth.middleware.1.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/middlewares/auth.middleware.1.ts -------------------------------------------------------------------------------- /src/middlewares/auth.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/middlewares/auth.middleware.ts -------------------------------------------------------------------------------- /src/middlewares/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/middlewares/types.ts -------------------------------------------------------------------------------- /src/resources/todo.resources/itodo.resource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/resources/todo.resources/itodo.resource.ts -------------------------------------------------------------------------------- /src/resources/todo.resources/todo.fs.resource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/resources/todo.resources/todo.fs.resource.ts -------------------------------------------------------------------------------- /src/resources/todo.resources/todo.mongo.resource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/resources/todo.resources/todo.mongo.resource.ts -------------------------------------------------------------------------------- /src/resources/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/resources/types.ts -------------------------------------------------------------------------------- /src/resources/user.resources/user.fs.resource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/resources/user.resources/user.fs.resource.ts -------------------------------------------------------------------------------- /src/schemas/todo.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/schemas/todo.schema.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/services/mongo.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/services/mongo.service.ts -------------------------------------------------------------------------------- /src/services/todo.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/services/todo.service.ts -------------------------------------------------------------------------------- /src/services/token.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/services/token.service.ts -------------------------------------------------------------------------------- /src/services/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/services/types.ts -------------------------------------------------------------------------------- /src/services/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/services/user.service.ts -------------------------------------------------------------------------------- /src/tests/api/auth.api.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/tests/api/auth.api.test.ts -------------------------------------------------------------------------------- /src/tests/api/todos.api.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/tests/api/todos.api.test.ts -------------------------------------------------------------------------------- /src/tests/api/users.api.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/tests/api/users.api.test.ts -------------------------------------------------------------------------------- /src/tests/unit/user.service.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/src/tests/unit/user.service.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkryuk/node-step-by-step/HEAD/tslint.json --------------------------------------------------------------------------------