├── .env ├── .gitignore ├── Dockerfile ├── MIT.md ├── README.md ├── Vending REST APIs.postman_collection.json ├── diagram.drawio ├── docker-compose.yaml ├── import ├── dataMap.json ├── machines.json ├── products.json └── users.json ├── package.json ├── screenshots ├── docker-compose_up.gif ├── import_mongo.gif ├── import_postman.gif ├── npm_start.gif ├── postman-docs.gif ├── postman-url.png └── swagger-docs.gif ├── src ├── config │ └── connectRedis.js ├── controller │ ├── machine.js │ ├── payment.js │ ├── product.js │ └── user.js ├── index.js ├── middleware │ ├── errorHandler.js │ ├── isAuthenticated.js │ ├── isLoggedIn.js │ ├── payment.js │ └── role.js ├── models │ ├── machine.js │ ├── product.js │ └── user.js ├── routes │ ├── machine.js │ ├── payment.js │ ├── product.js │ └── user.js ├── services │ ├── machine.js │ ├── product.js │ └── user.js ├── utils │ ├── cache.js │ ├── logger.js │ └── payment.js └── validators │ ├── machine.js │ ├── payment.js │ ├── product.js │ └── user.js ├── swagger.yaml └── vending-logo ├── eps ├── logo-black.eps ├── logo-color.eps ├── logo-no-background.eps └── logo-white.eps ├── pdf ├── logo-black.pdf ├── logo-color.pdf ├── logo-no-background.pdf └── logo-white.pdf ├── png ├── logo-black.png ├── logo-color.png ├── logo-no-background.png └── logo-white.png └── svg ├── logo-black.svg ├── logo-color.svg ├── logo-no-background.svg └── logo-white.svg /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | oldREADME.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/Dockerfile -------------------------------------------------------------------------------- /MIT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/MIT.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/README.md -------------------------------------------------------------------------------- /Vending REST APIs.postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/Vending REST APIs.postman_collection.json -------------------------------------------------------------------------------- /diagram.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/diagram.drawio -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /import/dataMap.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/import/dataMap.json -------------------------------------------------------------------------------- /import/machines.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/import/machines.json -------------------------------------------------------------------------------- /import/products.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/import/products.json -------------------------------------------------------------------------------- /import/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/import/users.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/package.json -------------------------------------------------------------------------------- /screenshots/docker-compose_up.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/screenshots/docker-compose_up.gif -------------------------------------------------------------------------------- /screenshots/import_mongo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/screenshots/import_mongo.gif -------------------------------------------------------------------------------- /screenshots/import_postman.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/screenshots/import_postman.gif -------------------------------------------------------------------------------- /screenshots/npm_start.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/screenshots/npm_start.gif -------------------------------------------------------------------------------- /screenshots/postman-docs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/screenshots/postman-docs.gif -------------------------------------------------------------------------------- /screenshots/postman-url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/screenshots/postman-url.png -------------------------------------------------------------------------------- /screenshots/swagger-docs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/screenshots/swagger-docs.gif -------------------------------------------------------------------------------- /src/config/connectRedis.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/config/connectRedis.js -------------------------------------------------------------------------------- /src/controller/machine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/controller/machine.js -------------------------------------------------------------------------------- /src/controller/payment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/controller/payment.js -------------------------------------------------------------------------------- /src/controller/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/controller/product.js -------------------------------------------------------------------------------- /src/controller/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/controller/user.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/index.js -------------------------------------------------------------------------------- /src/middleware/errorHandler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/middleware/errorHandler.js -------------------------------------------------------------------------------- /src/middleware/isAuthenticated.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/middleware/isAuthenticated.js -------------------------------------------------------------------------------- /src/middleware/isLoggedIn.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/middleware/isLoggedIn.js -------------------------------------------------------------------------------- /src/middleware/payment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/middleware/payment.js -------------------------------------------------------------------------------- /src/middleware/role.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/middleware/role.js -------------------------------------------------------------------------------- /src/models/machine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/models/machine.js -------------------------------------------------------------------------------- /src/models/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/models/product.js -------------------------------------------------------------------------------- /src/models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/models/user.js -------------------------------------------------------------------------------- /src/routes/machine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/routes/machine.js -------------------------------------------------------------------------------- /src/routes/payment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/routes/payment.js -------------------------------------------------------------------------------- /src/routes/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/routes/product.js -------------------------------------------------------------------------------- /src/routes/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/routes/user.js -------------------------------------------------------------------------------- /src/services/machine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/services/machine.js -------------------------------------------------------------------------------- /src/services/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/services/product.js -------------------------------------------------------------------------------- /src/services/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/services/user.js -------------------------------------------------------------------------------- /src/utils/cache.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/utils/cache.js -------------------------------------------------------------------------------- /src/utils/logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/utils/logger.js -------------------------------------------------------------------------------- /src/utils/payment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/utils/payment.js -------------------------------------------------------------------------------- /src/validators/machine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/validators/machine.js -------------------------------------------------------------------------------- /src/validators/payment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/validators/payment.js -------------------------------------------------------------------------------- /src/validators/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/validators/product.js -------------------------------------------------------------------------------- /src/validators/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/src/validators/user.js -------------------------------------------------------------------------------- /swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/swagger.yaml -------------------------------------------------------------------------------- /vending-logo/eps/logo-black.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/eps/logo-black.eps -------------------------------------------------------------------------------- /vending-logo/eps/logo-color.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/eps/logo-color.eps -------------------------------------------------------------------------------- /vending-logo/eps/logo-no-background.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/eps/logo-no-background.eps -------------------------------------------------------------------------------- /vending-logo/eps/logo-white.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/eps/logo-white.eps -------------------------------------------------------------------------------- /vending-logo/pdf/logo-black.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/pdf/logo-black.pdf -------------------------------------------------------------------------------- /vending-logo/pdf/logo-color.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/pdf/logo-color.pdf -------------------------------------------------------------------------------- /vending-logo/pdf/logo-no-background.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/pdf/logo-no-background.pdf -------------------------------------------------------------------------------- /vending-logo/pdf/logo-white.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/pdf/logo-white.pdf -------------------------------------------------------------------------------- /vending-logo/png/logo-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/png/logo-black.png -------------------------------------------------------------------------------- /vending-logo/png/logo-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/png/logo-color.png -------------------------------------------------------------------------------- /vending-logo/png/logo-no-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/png/logo-no-background.png -------------------------------------------------------------------------------- /vending-logo/png/logo-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/png/logo-white.png -------------------------------------------------------------------------------- /vending-logo/svg/logo-black.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/svg/logo-black.svg -------------------------------------------------------------------------------- /vending-logo/svg/logo-color.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/svg/logo-color.svg -------------------------------------------------------------------------------- /vending-logo/svg/logo-no-background.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/svg/logo-no-background.svg -------------------------------------------------------------------------------- /vending-logo/svg/logo-white.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedeid6842/Vending/HEAD/vending-logo/svg/logo-white.svg --------------------------------------------------------------------------------