├── .babelrc ├── .env.example ├── .gitignore ├── .npmrc ├── README.md ├── knexfile.js ├── package.json ├── src ├── app │ ├── controllers │ │ ├── auth │ │ │ └── index.js │ │ ├── index.js │ │ └── users │ │ │ └── index.js │ ├── exceptions │ │ ├── NotFoundException.js │ │ ├── UnAuthorizedException.js │ │ ├── ValidationException.js │ │ └── index.js │ ├── middlewares │ │ ├── Auth.js │ │ ├── FormValidations.js │ │ └── index.js │ ├── models │ │ ├── index.js │ │ └── user │ │ │ ├── Accessors.js │ │ │ └── index.js │ ├── repositories │ │ ├── index.js │ │ └── user │ │ │ └── index.js │ ├── transformers │ │ ├── index.js │ │ └── user │ │ │ └── index.js │ └── validations │ │ ├── auth.validations.js │ │ └── users.validations.js ├── bootstrap │ └── app.js ├── config │ ├── app.config.js │ ├── auth.config.js │ ├── database.config.js │ └── index.js ├── constants │ ├── DBTables.js │ ├── HTTPCode.js │ ├── Pagination.js │ └── UserRoles.js ├── database │ ├── factories │ │ └── UserFactory.js │ ├── migrations │ │ └── 20190707103825_create_users_table.js │ └── seeds │ │ └── UserTableSeeder.js ├── helpers │ └── core.helper.js ├── libraries │ ├── FakerFactories │ │ ├── FakerFactory.js │ │ └── index.js │ ├── Repository │ │ ├── RepositoryMixin.js │ │ ├── exceptions │ │ │ ├── ModelNotFoundException.js │ │ │ └── index.js │ │ ├── helpers │ │ │ └── Pagination.js │ │ ├── index.js │ │ ├── model │ │ │ ├── index.js │ │ │ └── plugins │ │ │ │ ├── Authenticatable.js │ │ │ │ └── Password.js │ │ └── transformer │ │ │ └── index.js │ └── controller │ │ ├── Response.js │ │ ├── index.js │ │ └── router │ │ └── index.js ├── routes │ ├── auth.routes.js │ ├── index.js │ └── users.routes.js └── server.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/.babelrc -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/README.md -------------------------------------------------------------------------------- /knexfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/knexfile.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/package.json -------------------------------------------------------------------------------- /src/app/controllers/auth/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/controllers/auth/index.js -------------------------------------------------------------------------------- /src/app/controllers/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/controllers/index.js -------------------------------------------------------------------------------- /src/app/controllers/users/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/controllers/users/index.js -------------------------------------------------------------------------------- /src/app/exceptions/NotFoundException.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/exceptions/NotFoundException.js -------------------------------------------------------------------------------- /src/app/exceptions/UnAuthorizedException.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/exceptions/UnAuthorizedException.js -------------------------------------------------------------------------------- /src/app/exceptions/ValidationException.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/exceptions/ValidationException.js -------------------------------------------------------------------------------- /src/app/exceptions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/exceptions/index.js -------------------------------------------------------------------------------- /src/app/middlewares/Auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/middlewares/Auth.js -------------------------------------------------------------------------------- /src/app/middlewares/FormValidations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/middlewares/FormValidations.js -------------------------------------------------------------------------------- /src/app/middlewares/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/middlewares/index.js -------------------------------------------------------------------------------- /src/app/models/index.js: -------------------------------------------------------------------------------- 1 | export { default as UserModel } from "./user" 2 | -------------------------------------------------------------------------------- /src/app/models/user/Accessors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/models/user/Accessors.js -------------------------------------------------------------------------------- /src/app/models/user/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/models/user/index.js -------------------------------------------------------------------------------- /src/app/repositories/index.js: -------------------------------------------------------------------------------- 1 | export { default as UserRepository } from "./user" 2 | -------------------------------------------------------------------------------- /src/app/repositories/user/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/repositories/user/index.js -------------------------------------------------------------------------------- /src/app/transformers/index.js: -------------------------------------------------------------------------------- 1 | export { default as UserTransformer } from "./user" 2 | -------------------------------------------------------------------------------- /src/app/transformers/user/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/transformers/user/index.js -------------------------------------------------------------------------------- /src/app/validations/auth.validations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/validations/auth.validations.js -------------------------------------------------------------------------------- /src/app/validations/users.validations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/app/validations/users.validations.js -------------------------------------------------------------------------------- /src/bootstrap/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/bootstrap/app.js -------------------------------------------------------------------------------- /src/config/app.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/config/app.config.js -------------------------------------------------------------------------------- /src/config/auth.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/config/auth.config.js -------------------------------------------------------------------------------- /src/config/database.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/config/database.config.js -------------------------------------------------------------------------------- /src/config/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/config/index.js -------------------------------------------------------------------------------- /src/constants/DBTables.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/constants/DBTables.js -------------------------------------------------------------------------------- /src/constants/HTTPCode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/constants/HTTPCode.js -------------------------------------------------------------------------------- /src/constants/Pagination.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/constants/Pagination.js -------------------------------------------------------------------------------- /src/constants/UserRoles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/constants/UserRoles.js -------------------------------------------------------------------------------- /src/database/factories/UserFactory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/database/factories/UserFactory.js -------------------------------------------------------------------------------- /src/database/migrations/20190707103825_create_users_table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/database/migrations/20190707103825_create_users_table.js -------------------------------------------------------------------------------- /src/database/seeds/UserTableSeeder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/database/seeds/UserTableSeeder.js -------------------------------------------------------------------------------- /src/helpers/core.helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/helpers/core.helper.js -------------------------------------------------------------------------------- /src/libraries/FakerFactories/FakerFactory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/FakerFactories/FakerFactory.js -------------------------------------------------------------------------------- /src/libraries/FakerFactories/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/FakerFactories/index.js -------------------------------------------------------------------------------- /src/libraries/Repository/RepositoryMixin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/Repository/RepositoryMixin.js -------------------------------------------------------------------------------- /src/libraries/Repository/exceptions/ModelNotFoundException.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/Repository/exceptions/ModelNotFoundException.js -------------------------------------------------------------------------------- /src/libraries/Repository/exceptions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/Repository/exceptions/index.js -------------------------------------------------------------------------------- /src/libraries/Repository/helpers/Pagination.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/Repository/helpers/Pagination.js -------------------------------------------------------------------------------- /src/libraries/Repository/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/Repository/index.js -------------------------------------------------------------------------------- /src/libraries/Repository/model/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/Repository/model/index.js -------------------------------------------------------------------------------- /src/libraries/Repository/model/plugins/Authenticatable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/Repository/model/plugins/Authenticatable.js -------------------------------------------------------------------------------- /src/libraries/Repository/model/plugins/Password.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/Repository/model/plugins/Password.js -------------------------------------------------------------------------------- /src/libraries/Repository/transformer/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/Repository/transformer/index.js -------------------------------------------------------------------------------- /src/libraries/controller/Response.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/controller/Response.js -------------------------------------------------------------------------------- /src/libraries/controller/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/controller/index.js -------------------------------------------------------------------------------- /src/libraries/controller/router/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/libraries/controller/router/index.js -------------------------------------------------------------------------------- /src/routes/auth.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/routes/auth.routes.js -------------------------------------------------------------------------------- /src/routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/routes/index.js -------------------------------------------------------------------------------- /src/routes/users.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/routes/users.routes.js -------------------------------------------------------------------------------- /src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/src/server.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puncoz-official/nodejs-express-mvc/HEAD/yarn.lock --------------------------------------------------------------------------------