├── .env.example ├── .gitignore ├── .sequelizerc ├── README.md ├── app ├── controllers │ ├── auth.js │ ├── category.js │ ├── checkout.js │ ├── product.js │ └── user.js ├── middlewares │ └── auth.js └── models │ ├── category.js │ ├── checkout.js │ ├── index.js │ ├── order.js │ ├── product.js │ └── user.js ├── config ├── cloudinary.js ├── connection.js ├── database.js └── index.js ├── database ├── migrations │ ├── 20190923112843-create-category.js │ ├── 20190923112850-create-product.js │ ├── 20190923112916-create-user.js │ ├── 20191004192833-create-checkout.js │ └── 20191004193113-create-order.js └── seeders │ └── 20190924171239-demo-data.js ├── package.json ├── public ├── index.html └── index.min.css ├── routes ├── api │ ├── category.js │ ├── checkout.js │ ├── index.js │ ├── product.js │ └── user.js ├── auth.js └── index.js ├── server.js ├── storage ├── placeholders │ └── noimage-placeholder.jpg └── uploads │ └── images │ └── products │ └── .gitignore ├── utils ├── Cloudinary.js ├── Date.js ├── HttpError.js └── Redis.js ├── validator ├── category.js ├── checkout.js ├── index.js ├── product.js └── user.js └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | node_modules 3 | yarn-error.log -------------------------------------------------------------------------------- /.sequelizerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/.sequelizerc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/README.md -------------------------------------------------------------------------------- /app/controllers/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/controllers/auth.js -------------------------------------------------------------------------------- /app/controllers/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/controllers/category.js -------------------------------------------------------------------------------- /app/controllers/checkout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/controllers/checkout.js -------------------------------------------------------------------------------- /app/controllers/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/controllers/product.js -------------------------------------------------------------------------------- /app/controllers/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/controllers/user.js -------------------------------------------------------------------------------- /app/middlewares/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/middlewares/auth.js -------------------------------------------------------------------------------- /app/models/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/models/category.js -------------------------------------------------------------------------------- /app/models/checkout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/models/checkout.js -------------------------------------------------------------------------------- /app/models/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/models/index.js -------------------------------------------------------------------------------- /app/models/order.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/models/order.js -------------------------------------------------------------------------------- /app/models/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/models/product.js -------------------------------------------------------------------------------- /app/models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/app/models/user.js -------------------------------------------------------------------------------- /config/cloudinary.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/config/cloudinary.js -------------------------------------------------------------------------------- /config/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/config/connection.js -------------------------------------------------------------------------------- /config/database.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/config/database.js -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/config/index.js -------------------------------------------------------------------------------- /database/migrations/20190923112843-create-category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/database/migrations/20190923112843-create-category.js -------------------------------------------------------------------------------- /database/migrations/20190923112850-create-product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/database/migrations/20190923112850-create-product.js -------------------------------------------------------------------------------- /database/migrations/20190923112916-create-user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/database/migrations/20190923112916-create-user.js -------------------------------------------------------------------------------- /database/migrations/20191004192833-create-checkout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/database/migrations/20191004192833-create-checkout.js -------------------------------------------------------------------------------- /database/migrations/20191004193113-create-order.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/database/migrations/20191004193113-create-order.js -------------------------------------------------------------------------------- /database/seeders/20190924171239-demo-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/database/seeders/20190924171239-demo-data.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/package.json -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/public/index.html -------------------------------------------------------------------------------- /public/index.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/public/index.min.css -------------------------------------------------------------------------------- /routes/api/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/routes/api/category.js -------------------------------------------------------------------------------- /routes/api/checkout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/routes/api/checkout.js -------------------------------------------------------------------------------- /routes/api/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/routes/api/index.js -------------------------------------------------------------------------------- /routes/api/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/routes/api/product.js -------------------------------------------------------------------------------- /routes/api/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/routes/api/user.js -------------------------------------------------------------------------------- /routes/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/routes/auth.js -------------------------------------------------------------------------------- /routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/routes/index.js -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/server.js -------------------------------------------------------------------------------- /storage/placeholders/noimage-placeholder.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/storage/placeholders/noimage-placeholder.jpg -------------------------------------------------------------------------------- /storage/uploads/images/products/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /utils/Cloudinary.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/utils/Cloudinary.js -------------------------------------------------------------------------------- /utils/Date.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/utils/Date.js -------------------------------------------------------------------------------- /utils/HttpError.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/utils/HttpError.js -------------------------------------------------------------------------------- /utils/Redis.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/utils/Redis.js -------------------------------------------------------------------------------- /validator/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/validator/category.js -------------------------------------------------------------------------------- /validator/checkout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/validator/checkout.js -------------------------------------------------------------------------------- /validator/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/validator/index.js -------------------------------------------------------------------------------- /validator/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/validator/product.js -------------------------------------------------------------------------------- /validator/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/validator/user.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gadingnst/point-of-sales-api/HEAD/yarn.lock --------------------------------------------------------------------------------