Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1.11 KB

File metadata and controls

56 lines (34 loc) · 1.11 KB

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