Skip to content
/ express-sequelize Public template

A starter express server with sequelize that features RESTful API generation based on sequelize models.

License

Notifications You must be signed in to change notification settings

wchen02/express-sequelize

Repository files navigation

express-sequelize

Node.js CI

A starter express server with sequelize that features RESTful API generation based on sequelize models.

Features

  • Automatically generate REST APIs for sequelize models
  • Provides ability to override generated controllers and APIs (WIP)

Getting Started

1. Installing

git clone [email protected]:wchen02/express-sequelize.git
cd express-sequelize
npm install
npm install --only=dev

2. Choosing a database driver

You'll also have to manually install the driver for your database of choice:

npm install --save pg pg-hstore # Postgres
npm install --save mysql2
npm install --save mariadb
npm install --save sqlite3
npm install --save tedious # Microsoft SQL Server

If you need help with the database setup, please follow this guide.

3. Setting up a connection

Put your database configuration in the .env

cp .env.example .env

4. Running migrations and seeds

npm run migrate
npm run seed

5. Starting the server

Development

npm run dev

Production

npm run start

About

A starter express server with sequelize that features RESTful API generation based on sequelize models.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages