brianschardt / node_rest_api_mysql

MIT License
248 stars 140 forks source link

Rest Api Node and Mysql

Note: Please look at this new tempalate that uses nest, and graphql. It is much more up to date as I do not use this template anymore

https://github.com/brianschardt/node_nest_graphql_template

Description

This is an Restful API for Node.js and Mysql. Designed after PHP's beautiful Laravel. This is in the MVC format, except because it is an API there are no views, just models and controllers.

tutorial can be found here: https://medium.com/@brianalois/build-a-rest-api-for-node-mysql-2018-jwt-6957bcfc7ac9

Routing : Express
ORM Database : Sequelize
Authentication : Passport, JWT

Installation

Download Code | Clone the Repo

git clone {repo_name}

Install Node Modules

npm install

Create .env File

You will find a example.env file in the home directory. Paste the contents of that into a file named .env in the same directory. Fill in the variables to fit your application