Simple back-end using Koa.js/PostgreSQL
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
modules
resources/images
static/assets/images
.eslintrc.json
.gitignore
.npm-init.js
.npmrc
README.md
ecosystem.config.json
logger.js
package-lock.json
package.json
scheduler.js
server.js

README.md

Simple Back-end

Synopsis

Simple back-end using Koa.js/PostgreSQL

Install

Open terminal at project root and execute

$ npm install

Configure

CORS

Set origin (client) URL

$ export URL_ORIGIN='http://127.0.0.1:8081'

Setup

Initialize and seed database

$ export NODE_ENV=development && npm run db-init

Serve

$ export SIMPLE_SCHEDULER="false" && npm run debug

Test

$ NODE_ENV=test && npm test