├── .env ├── .gitignore ├── LC Tech.postman_collection.json ├── lc-tech.sql ├── nginx.conf ├── nodemon.json ├── package.json ├── src ├── app.ts ├── configs │ ├── development.json │ ├── production.json │ └── test.json ├── controllers │ ├── assets.controller.ts │ ├── auth.controller.ts │ ├── clients.controller.ts │ ├── events.controller.ts │ ├── index.controller.ts │ └── locations.controller.ts ├── databases │ └── index.ts ├── dtos │ ├── answer_key.dto.ts │ ├── asset.dto.ts │ ├── clients.dto.ts │ ├── events.dto.ts │ └── locations.dto.ts ├── exceptions │ └── HttpException.ts ├── interfaces │ ├── answer_key.interface.ts │ ├── asset.interface.ts │ ├── auth.interface.ts │ ├── client.interface.ts │ ├── db.interface.ts │ ├── event.interface.ts │ ├── location.interface.ts │ └── routes.interface.ts ├── logs │ ├── debug │ │ ├── .4daf4d309a236263292bbb75f9ee947868fc2dda-audit.json │ │ ├── .7b9ad682ecbc9e22e1ebe73b1d7d8eae480654c6-audit.json │ │ ├── 2021-05-18.log │ │ ├── 2021-05-19.log │ │ ├── 2021-05-22.log │ │ ├── 2021-05-23.log │ │ └── 2021-05-24.log │ └── error │ │ ├── .162a9ddd2458dfaccdeec2e57d0202375b2c9a57-audit.json │ │ ├── .24ee91ee6985a7fbd94cb8772d0c1fe7a90d61c1-audit.json │ │ ├── 2021-05-18.log │ │ ├── 2021-05-19.log │ │ ├── 2021-05-22.log │ │ ├── 2021-05-23.log │ │ └── 2021-05-24.log ├── middlewares │ ├── auth.middleware.ts │ ├── error.middleware.ts │ └── validation.middleware.ts ├── models │ ├── answer_key.model.ts │ ├── assets.model.ts │ ├── clients.model.ts │ ├── events.model.ts │ └── location.model.ts ├── routes │ ├── assets.route.ts │ ├── auth.route.ts │ ├── clients.route.ts │ ├── events.route.ts │ ├── index.route.ts │ └── locations.route.ts ├── server.ts ├── services │ ├── assets.service.ts │ ├── auth.service.ts │ ├── clients.service.ts │ ├── events.service.ts │ └── locations.service.ts └── utils │ ├── logger.ts │ └── util.ts └── tsconfig.json /.env: -------------------------------------------------------------------------------- 1 | PORT=3000 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /LC Tech.postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/LC Tech.postman_collection.json -------------------------------------------------------------------------------- /lc-tech.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/lc-tech.sql -------------------------------------------------------------------------------- /nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/nginx.conf -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/package.json -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/configs/development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/configs/development.json -------------------------------------------------------------------------------- /src/configs/production.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/configs/production.json -------------------------------------------------------------------------------- /src/configs/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/configs/test.json -------------------------------------------------------------------------------- /src/controllers/assets.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/controllers/assets.controller.ts -------------------------------------------------------------------------------- /src/controllers/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/controllers/auth.controller.ts -------------------------------------------------------------------------------- /src/controllers/clients.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/controllers/clients.controller.ts -------------------------------------------------------------------------------- /src/controllers/events.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/controllers/events.controller.ts -------------------------------------------------------------------------------- /src/controllers/index.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/controllers/index.controller.ts -------------------------------------------------------------------------------- /src/controllers/locations.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/controllers/locations.controller.ts -------------------------------------------------------------------------------- /src/databases/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/databases/index.ts -------------------------------------------------------------------------------- /src/dtos/answer_key.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/dtos/answer_key.dto.ts -------------------------------------------------------------------------------- /src/dtos/asset.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/dtos/asset.dto.ts -------------------------------------------------------------------------------- /src/dtos/clients.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/dtos/clients.dto.ts -------------------------------------------------------------------------------- /src/dtos/events.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/dtos/events.dto.ts -------------------------------------------------------------------------------- /src/dtos/locations.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/dtos/locations.dto.ts -------------------------------------------------------------------------------- /src/exceptions/HttpException.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/exceptions/HttpException.ts -------------------------------------------------------------------------------- /src/interfaces/answer_key.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/interfaces/answer_key.interface.ts -------------------------------------------------------------------------------- /src/interfaces/asset.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/interfaces/asset.interface.ts -------------------------------------------------------------------------------- /src/interfaces/auth.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/interfaces/auth.interface.ts -------------------------------------------------------------------------------- /src/interfaces/client.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/interfaces/client.interface.ts -------------------------------------------------------------------------------- /src/interfaces/db.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/interfaces/db.interface.ts -------------------------------------------------------------------------------- /src/interfaces/event.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/interfaces/event.interface.ts -------------------------------------------------------------------------------- /src/interfaces/location.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/interfaces/location.interface.ts -------------------------------------------------------------------------------- /src/interfaces/routes.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/interfaces/routes.interface.ts -------------------------------------------------------------------------------- /src/logs/debug/.4daf4d309a236263292bbb75f9ee947868fc2dda-audit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/debug/.4daf4d309a236263292bbb75f9ee947868fc2dda-audit.json -------------------------------------------------------------------------------- /src/logs/debug/.7b9ad682ecbc9e22e1ebe73b1d7d8eae480654c6-audit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/debug/.7b9ad682ecbc9e22e1ebe73b1d7d8eae480654c6-audit.json -------------------------------------------------------------------------------- /src/logs/debug/2021-05-18.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/debug/2021-05-18.log -------------------------------------------------------------------------------- /src/logs/debug/2021-05-19.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/debug/2021-05-19.log -------------------------------------------------------------------------------- /src/logs/debug/2021-05-22.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/debug/2021-05-22.log -------------------------------------------------------------------------------- /src/logs/debug/2021-05-23.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/debug/2021-05-23.log -------------------------------------------------------------------------------- /src/logs/debug/2021-05-24.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/debug/2021-05-24.log -------------------------------------------------------------------------------- /src/logs/error/.162a9ddd2458dfaccdeec2e57d0202375b2c9a57-audit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/error/.162a9ddd2458dfaccdeec2e57d0202375b2c9a57-audit.json -------------------------------------------------------------------------------- /src/logs/error/.24ee91ee6985a7fbd94cb8772d0c1fe7a90d61c1-audit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/error/.24ee91ee6985a7fbd94cb8772d0c1fe7a90d61c1-audit.json -------------------------------------------------------------------------------- /src/logs/error/2021-05-18.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/logs/error/2021-05-19.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/error/2021-05-19.log -------------------------------------------------------------------------------- /src/logs/error/2021-05-22.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/error/2021-05-22.log -------------------------------------------------------------------------------- /src/logs/error/2021-05-23.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/error/2021-05-23.log -------------------------------------------------------------------------------- /src/logs/error/2021-05-24.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/logs/error/2021-05-24.log -------------------------------------------------------------------------------- /src/middlewares/auth.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/middlewares/auth.middleware.ts -------------------------------------------------------------------------------- /src/middlewares/error.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/middlewares/error.middleware.ts -------------------------------------------------------------------------------- /src/middlewares/validation.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/middlewares/validation.middleware.ts -------------------------------------------------------------------------------- /src/models/answer_key.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/models/answer_key.model.ts -------------------------------------------------------------------------------- /src/models/assets.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/models/assets.model.ts -------------------------------------------------------------------------------- /src/models/clients.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/models/clients.model.ts -------------------------------------------------------------------------------- /src/models/events.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/models/events.model.ts -------------------------------------------------------------------------------- /src/models/location.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/models/location.model.ts -------------------------------------------------------------------------------- /src/routes/assets.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/routes/assets.route.ts -------------------------------------------------------------------------------- /src/routes/auth.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/routes/auth.route.ts -------------------------------------------------------------------------------- /src/routes/clients.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/routes/clients.route.ts -------------------------------------------------------------------------------- /src/routes/events.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/routes/events.route.ts -------------------------------------------------------------------------------- /src/routes/index.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/routes/index.route.ts -------------------------------------------------------------------------------- /src/routes/locations.route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/routes/locations.route.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/services/assets.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/services/assets.service.ts -------------------------------------------------------------------------------- /src/services/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/services/auth.service.ts -------------------------------------------------------------------------------- /src/services/clients.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/services/clients.service.ts -------------------------------------------------------------------------------- /src/services/events.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/services/events.service.ts -------------------------------------------------------------------------------- /src/services/locations.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/services/locations.service.ts -------------------------------------------------------------------------------- /src/utils/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/utils/logger.ts -------------------------------------------------------------------------------- /src/utils/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/src/utils/util.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abbasikov/LC-Tech-Challenge/HEAD/tsconfig.json --------------------------------------------------------------------------------