Skip to content

ExpressJS + Sequelize ORM Boilerplate, Configuration for MYSQL and PostgreSQL, Ready to use

Notifications You must be signed in to change notification settings

Zainal21/ExpressJS-Boilerplate-with-ORM-Sequelize

Repository files navigation

Base Setup Express JS Project

(Base Expres Project) Expres Base Setup use Model, View, Controller Pattern.


Table of contents

Prerequiste

  • Node JS - Download and Install NodeJS

Installation

  1. Clone repository
$ git clone https://github.com/Zainal21/ExpressJS-Boilerplate-with-ORM-Sequelize.git
  1. move to directory project and Install depedencies
$ cd ExpressJS-Boilerplate-with-ORM-Sequelize

$ yarn install or npm install
  1. Setup your environment variable in .env files or rename .env.example to .env.

  2. run initialize sequalize then change config.json to config.js and copy value in config.example to config.js and change path config.json to config.js in models index.js file

$  yarn db:init
  1. run script for migration , seeder and drop all data
$  yarn db:reset
  1. run script for runnig development server using nodemon
$  yarn dev

Copyright © 2023 by Muhamad Zainal Arifin

About

ExpressJS + Sequelize ORM Boilerplate, Configuration for MYSQL and PostgreSQL, Ready to use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published