Skip to content

A template for Node.js projects. This template uses Koa, Sequelize and Handlebars.

Notifications You must be signed in to change notification settings

ashpr/koa-sequelize-template

Repository files navigation

Koa-Sequelize-Template

I found I was often writing the same code over again for Node projects so I made this template to ease the repetition.

The template uses the following...

Koa as a web framework.

Sequelize as the data storage.

Handlebars for views.

Passport for authentication.

Installation

A Vagrant file is included.

Option A: Use docker-compose to file up Node, MariaDB and Redis server instances.

Option B: npm install in the working directory and setup the config.js file.

A sample project is included for simple authentication and registration.

TODO

Tests!

Build the latest wwwsrc in the Dockerfile with gulp and exclude wwwbuild from git to avoid merge conflicts.

Usage

Custom js and scss files should go in the wwwsrc folder. Following the format wwwsrc/<js|scss>/<name>/.

Use the provided gulpfile.js to compile the js/scss files. Browsersync is also provided for easier development.

Assets such as images, fonts, and third-party libs should go into the assets folder

License

MIT

About

A template for Node.js projects. This template uses Koa, Sequelize and Handlebars.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published