├── .env ├── .gitignore ├── README.md ├── app.js ├── config ├── database.config.js └── database.configexample.js ├── helpers ├── error-handler.js └── jwt.js ├── models ├── category.js ├── order-item.js ├── order.js ├── product.js └── user.js ├── package.json └── routes ├── categories.js ├── orders.js ├── products.js └── users.js /.env: -------------------------------------------------------------------------------- 1 | API_URL = /api/v1 2 | secret = -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/README.md -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/app.js -------------------------------------------------------------------------------- /config/database.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/config/database.config.js -------------------------------------------------------------------------------- /config/database.configexample.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/config/database.configexample.js -------------------------------------------------------------------------------- /helpers/error-handler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/helpers/error-handler.js -------------------------------------------------------------------------------- /helpers/jwt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/helpers/jwt.js -------------------------------------------------------------------------------- /models/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/models/category.js -------------------------------------------------------------------------------- /models/order-item.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/models/order-item.js -------------------------------------------------------------------------------- /models/order.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/models/order.js -------------------------------------------------------------------------------- /models/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/models/product.js -------------------------------------------------------------------------------- /models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/models/user.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/package.json -------------------------------------------------------------------------------- /routes/categories.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/routes/categories.js -------------------------------------------------------------------------------- /routes/orders.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/routes/orders.js -------------------------------------------------------------------------------- /routes/products.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/routes/products.js -------------------------------------------------------------------------------- /routes/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dinushchathurya/nodejs-ecommerce-api/HEAD/routes/users.js --------------------------------------------------------------------------------