Skip to content

neonexxa/quicknode

Repository files navigation

QuickNode Framework

Simplified the setup of express node

Installation

  1. git clone this repo
  2. npm i

Development

  1. Sequelize is setup following this tutorial https://dev.to/nedsoft/getting-started-with-sequelize-and-postgres-emp
  2. If sequelize is not installed, globally, can use npx sequelize-cli <command>

ENV RC CONFIG

  1. copy the envrc.example to .envrc ans write your appropriate settings
  2. Install DIRENV
  3. Run below to activate your env setting
  • zsh
eval "$(direnv hook zsh)"
direnv allow
  • bash
eval "$(direnv hook bash)"
direnv allow

Serve The App

npx nodemon

Database sequlize thingy (SQL)

  1. fresh migrate
npx sequelize-cli db:migrate:undo:all && npx sequelize-cli db:migrate && npx sequelize-cli db:seed:all

Model & Seeder (example)

npx sequelize-cli model:generate --name Role --attributes name:string
npx sequelize-cli seed:generate --name role

Visualize ERD

npm run erd

About

Simplified Express Node & Sequelize (ENS - Backend)

Resources

Stars

Watchers

Forks

Packages

No packages published