icapps / nodejs-silverback

Silverback boilerplate project
ISC License
6 stars 1 forks source link
express knex node nodejs silverback

Silverback

NodeJS boilerplate project

Dependencies Build Status Coverage Status Greenkeeper badge

alt text

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Make sure you have Node.js and Docker (preferably) installed. This will make it easy to run the project locally and all tests without having to install PostgreSQL and Redis onto your system.

Installation

Install all dependencies

npm install

Databases

This repository contains a docker-compose.yml file providing PostgreSQL and Redis.

PostgreSQL

Start PostgreSQL in daemon mode:

docker-compose up -d postgres

Migrations

The project uses a sql query builder called knex.js which provides migration support. Run all migrations via npm run db:migrate.

Seeds

The project uses a sql query builder called knex.js which provides seeding support. Run all initial seeds via npm run db:seed.

Redis

Start redis in daemon mode:

docker-compose up -d redis

Running locally

// Start
npm run start

// Build and start
npm run serve

Running the tests

Run all tests

npm run test

Run all tests with coverage report

npm run test:coverage

Deployment

Bugs

When you find issues, please report them:

Be sure to include all of the output from the npm command that didn't work as expected. The npm-debug.log file is also helpful to provide.

Authors

See the list of contributors who participated in this project.

License

This project is licensed under the ISC License - see the LICENSE.md file for details