{"repo":"MarkKhramko/nodejs-express-jwt","free":true,"listed":false,"github":"https://github.com/MarkKhramko/nodejs-express-jwt","clone":"git clone https://github.com/MarkKhramko/nodejs-express-jwt.git","description":"Node.js Express REST API boilerplate with JWT Authentication and support for MySQL and PostgreSQL.","language":"JavaScript","stars":64,"topics":["nodejs","boilerplate","express","jwt","hacktoberfest2023"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"nodejs-express-jwt Express REST API Boilerplate with JWT Authentication and support for MySQL and PostgreSQL. - Compilation via Babel; - Authentication via JWT; - Routes mapping via express-routes-mapper; - Environments for development , testing , and production . Table of Contents - Version notice - Install & Use - Controllers - Create a Controller - Models - Create a Model - Policies - Services - Configs - .env - npm scripts - License Version notice This project came a long way since the initial release in 2018. If you used this boilerplate before 2021, you should check a v0.x.x branch and v0 tags for the latest changes of v0. Install and Use Start by cloning this repository then use npm to MySQL is supported out of the box as it is the default. Controllers Controllers in this boilerplate have a naming convention: ModelnameController.js and uses an object factory pattern. To use a model inside of your controller you have to require it. We use Sequelize as ORM, if you want further information read the Docs. Folder structure Controllers for your main API should be placed inside /api/ directory; Controllers for HTTP requests should be placed inside /web/ directory. Create a Controller Example Controller for all CRUD oparations: Models Models in this boilerplate have a naming convention: Model.js and uses Sequelize to define Models, if you want further information read the Docs. Create a Model Example User Model: Policies Policies are middleware functions that can run before hi","default_branch":null,"files":null,"tree":[],"storefront":"/r/MarkKhramko","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MarkKhramko/nodejs-express-jwt/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."}