Coder Social home page Coder Social logo

tanbinh123 / nodejs-sequelize-mysql-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from indraarianggi/nodejs-sequelize-mysql-api

0.0 1.0 0.0 29 KB

REST API using Node.js, Express, Sequelize and MySQL + JWT Authentication and Authorization

JavaScript 100.00%

nodejs-sequelize-mysql-api's Introduction

REST API using Node.js, Express, Sequelize and MySQL + JWT Authentication and Authorization

Getting Started

  1. Clone this repository

    git clone https://github.com/indraarianggi/nodejs-sequelize-mysql-api.git
    cd nodejs-sequelize-mysql-api
  2. Install the npm packages

    npm install

    Also install nodemon globally, if you don't have it yet.

    npm install -g nodemon
  3. Congfigure environment settings

    Create a file with the following name and location .env and copy the contents from .env.example into it. Replace the values with your specific configuration. Don't worry, this file is in the .gitignore so it won't get pushed to github.

     NODE_ENV=development
     PORT=8080
    
     # Database
     DB_HOST=your-db-host
     DB_USER=your-db-username
     DB_PASS=your-db-password
     DB_NAME=your-db-name
    
  4. Running the app locally

    Run this command, which is located in npm script in package.json file.

    npm run dev

Resources

  1. Node.js Rest APIs example with Express, Sequelize & MySQL

  2. Node.js โ€“ JWT Authentication & Authorization with JSONWebToken example

  3. In-depth Introduction to JWT-JSON Web Token

  4. Sequelize Documentation

  5. Getting Started with Node, Express and Mysql Using Sequelize

  6. Hidup Mudah dengan Sequelize: ORM Untuk Aplikasi NodeJS

  7. Node.js Everywhere with Environment Variables!

nodejs-sequelize-mysql-api's People

Contributors

indraarianggi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.