GithubHelp home page GithubHelp logo

jwmcfarland / express-sequelize-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gadfaria/express-sequelize-boilerplate

0.0 0.0 0.0 229 KB

Boilerplate for express.js.

License: MIT License

JavaScript 100.00%

express-sequelize-boilerplate's Introduction

express-sequelize-boilerplate

Express.js Sequelize

This is a simple boilerplate for building REST APIs in Node.js using Express. Intended for use with PostgreSQL using Sequelize ORM.

Getting Started

Clone the repository

git clone https://github.com/gadfaria/express-sequelize-boilerplate.git

Enter into the directory

cd express-sequelize-boilerplate/

Install the dependencies

yarn

Set the environment variables

cp .env.example .env

Running the boilerplate:

yarn dev

Configuration

Variables for the environment

Option Description
SERVER_PORT Port the server will run on
NODE_ENV development or production
SERVER_JWT true or false
SERVER_JWT_SECRET JWT secret
SERVER_JWT_TIMEOUT JWT duration time
DB_DIALECT "mysql", "postgresql", among others
DB_HOST Database host
DB_USER Database username
DB_PASS Database password
DB_NAME Database name
AWS_KEYID Access key ID
AWS_SECRETKEY User secret key
AWS_BUCKET Bucket name

Commands for sequelize

# Creates the database
yarn sequelize db:create 

# Drops the database
yarn sequelize db:drop 

# Load migrations
yarn sequelize db:migrate 

# Undo migrations
yarn sequelize db:migrate:undo:all 

# Load seeders
yarn sequelize db:seed:all

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

โ˜• Code and Coffee

express-sequelize-boilerplate's People

Contributors

gadfaria avatar dependabot[bot] 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.