├── .dockerignore ├── .editorconfig ├── .env.development.local ├── .env.production.local ├── .env.test.local ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .huskyrc ├── .lintstagedrc.json ├── .prettierrc ├── .swcrc ├── .vscode ├── launch.json └── settings.json ├── Dockerfile ├── Makefile ├── README.md ├── bin └── cli.js ├── docker-compose.yml ├── ecosystem.config.js ├── jest.config.js ├── nginx.conf ├── nodemon.json ├── package.json ├── src ├── app.ts ├── config │ └── index.ts ├── controllers │ ├── auth.controller.ts │ ├── index.controller.ts │ └── users.controller.ts ├── databases │ └── index.ts ├── dtos │ └── users.dto.ts ├── exceptions │ └── HttpException.ts ├── http │ ├── auth.http │ └── users.http ├── interfaces │ ├── auth.interface.ts │ ├── routes.interface.ts │ └── users.interface.ts ├── middlewares │ ├── auth.middleware.ts │ ├── error.middleware.ts │ └── validation.middleware.ts ├── models │ └── users.model.ts ├── routes │ ├── auth.route.ts │ ├── index.route.ts │ └── users.route.ts ├── server.ts ├── services │ ├── auth.service.ts │ └── users.service.ts ├── tests │ ├── auth.test.ts │ ├── index.test.ts │ └── users.test.ts └── utils │ ├── logger.ts │ ├── util.ts │ └── validateEnv.ts ├── swagger.yaml └── tsconfig.json /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.dockerignore -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.development.local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.env.development.local -------------------------------------------------------------------------------- /.env.production.local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.env.production.local -------------------------------------------------------------------------------- /.env.test.local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.env.test.local -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /dist -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.gitignore -------------------------------------------------------------------------------- /.huskyrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.huskyrc -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.lintstagedrc.json -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.prettierrc -------------------------------------------------------------------------------- /.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.swcrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/Dockerfile -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/README.md -------------------------------------------------------------------------------- /bin/cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/bin/cli.js -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /ecosystem.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/ecosystem.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/jest.config.js -------------------------------------------------------------------------------- /nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/nginx.conf -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/package.json -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/config/index.ts -------------------------------------------------------------------------------- /src/controllers/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/controllers/auth.controller.ts -------------------------------------------------------------------------------- /src/controllers/index.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/controllers/index.controller.ts -------------------------------------------------------------------------------- /src/controllers/users.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/controllers/users.controller.ts -------------------------------------------------------------------------------- /src/databases/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/databases/index.ts -------------------------------------------------------------------------------- /src/dtos/users.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/dtos/users.dto.ts -------------------------------------------------------------------------------- /src/exceptions/HttpException.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/exceptions/HttpException.ts -------------------------------------------------------------------------------- /src/http/auth.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/http/auth.http -------------------------------------------------------------------------------- /src/http/users.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/http/users.http -------------------------------------------------------------------------------- /src/interfaces/auth.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/interfaces/auth.interface.ts -------------------------------------------------------------------------------- /src/interfaces/routes.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/interfaces/routes.interface.ts -------------------------------------------------------------------------------- /src/interfaces/users.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/interfaces/users.interface.ts -------------------------------------------------------------------------------- /src/middlewares/auth.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/middlewares/auth.middleware.ts -------------------------------------------------------------------------------- /src/middlewares/error.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/middlewares/error.middleware.ts -------------------------------------------------------------------------------- /src/middlewares/validation.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/middlewares/validation.middleware.ts -------------------------------------------------------------------------------- /src/models/users.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/models/users.model.ts -------------------------------------------------------------------------------- /src/routes/auth.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/routes/auth.route.ts -------------------------------------------------------------------------------- /src/routes/index.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/routes/index.route.ts -------------------------------------------------------------------------------- /src/routes/users.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/routes/users.route.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/services/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/services/auth.service.ts -------------------------------------------------------------------------------- /src/services/users.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/services/users.service.ts -------------------------------------------------------------------------------- /src/tests/auth.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/tests/auth.test.ts -------------------------------------------------------------------------------- /src/tests/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/tests/index.test.ts -------------------------------------------------------------------------------- /src/tests/users.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/tests/users.test.ts -------------------------------------------------------------------------------- /src/utils/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/utils/logger.ts -------------------------------------------------------------------------------- /src/utils/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/utils/util.ts -------------------------------------------------------------------------------- /src/utils/validateEnv.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/src/utils/validateEnv.ts -------------------------------------------------------------------------------- /swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/swagger.yaml -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadjoya/typescript-express-mongoose-starter/HEAD/tsconfig.json --------------------------------------------------------------------------------