Skip to content

calmm-js/karet-express-boilerplate

Repository files navigation

Gitter Build Status

Quick start

First install a new Node.js (8.x) if you don't have it already.

git clone [email protected]:calmm-js/karet-express-boilerplate.git
cd karet-express-boilerplate
npm install
npm run watch

Then:

open https://localhost:3000

Windows

If you are working on Windows, then you should know that the NPM scripts in the package.json are designed to run with Bash. If you cannot have Bash shell installed for some reason, then you need to port those scripts to CMD or something else. Note that this project is just a sample. You will always want to customize the scripts for your particular needs.

With DB

For full experience you will also need a DB. An easy way to get a DB running for development is to use Docker.

There is a docker-compose.yml file that specifies a suitable PostgreSQL image. To start the DB, simply run

docker-compose up

in a new shell. The Node server uses a DB to store results if the following variables are set:

export DATABASE_URL='postgres:https://keb:keb@dockerhost:5432/keb'

Check that the hostname (above dockerhost) matches your configuration.

About

Sample boilerplate for a Karet + Express web app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published