{"repo":"minhuyen/generator-expressjs-rest","free":true,"listed":false,"github":"https://github.com/minhuyen/generator-expressjs-rest","clone":"git clone https://github.com/minhuyen/generator-expressjs-rest.git","description":"Project template for an ExpressJS application","language":"JavaScript","stars":55,"topics":["babel","docker","api","express","swagger","admin-dashboard","yeoman","rest-api"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Generator Expressjs Rest Features - User Registration - Basic Authentication with username and password - Admin use react-admin - Oauth 2.0 Authentication - Facebook - Google - Upload Photo to S3 amazon - Docker Prerequisites - Docker (at least 1.10) - Docker-compose (at least 1.6) Installation Fist, install Yeoman and generator-expressjs-rest using npm (we assume you have pre-installed node.js). Generators Then, you can use yo to generate your project. Commands After you generate your project, these commands. Playing locally Deploy Directory structure Overview src/api/ Here is where the API endpoints are defined. Each API has its own folder. src/api/some-endpoint/model.js It defines the Mongoose schema and model for the API endpoint. Any changes to the data model should be done here. src/api/some-endpoint/controller.js This is the API controller file. It defines the main router middlewares which use the API model. src/api/some-endpoint/index.js This is the entry file of the API. It defines the routes using, along other middlewares (like session, validation etc.), the middlewares defined in the some-endpoint.controller.js file. services/ Here you can put helpers , libraries and other types of modules which you want to use in your APIs. TODO - Support optional phone authentication - Support optional email confirmation process - Support Twitter and other social login methods - Socket.io support PRs are welcome. Credits @minhuyen and all contributors License MIT © minhuyen","default_branch":null,"files":null,"tree":[],"storefront":"/r/minhuyen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/minhuyen/generator-expressjs-rest/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}