Skip to content
This repository was archived by the owner on Jan 29, 2019. It is now read-only.

Repository files navigation

Usage

event.app.iterate.no/eventName

API

Take a look at the router.

Setup

This project use the yarn package manager. Use yarn wherever you would use npm. Remember to commit the yarn.lock when you add or change modules.

npm install -g yarn && yarn

Run with yarn start, or yarn run dev-start for live reloading.

Postgresql DB

Install PostgreSQL. Connect to the default template database with a superuser, typically postgres.

psql -d template1 -U postgres

Create a database and a user, and grant this user access.

CREATE DATABASE event;
CREATE USER event WITH PASSWORD 'test';
GRANT ALL PRIVILEGES ON DATABASE event to event;

The first time you also need to run migrations to create the tables. Sequelize-cli is installed as a node package, so from the app/storage folder, do

../../node_modules/.bin/sequelize db:migrate --url postgresql://event:test@localhost:5432/event

This will apply the migrations from app/storage/migrations.

Testing

This project use jshint and tap for code validation and testing.

Lint code with: yarn run lint Run tests: yarn test

Configuration

You'll can override environment settings using config/development.json or in config/config.js, the latter also explains which environment variables the app needs.

Example development.json:

{
    'version': '0.0.2',
    'httpServerPort': 1234
}

Deployment

See wiki for details

Add git remote: git add remote iterate dokku@app.iterate.no:event

Push to deploy: git push iterate master

Apply any new migrations manually after deploy.

About

Event app written in Elm

Resources

Stars

0 stars

Watchers

9 watching

Forks

Releases

Packages

Contributors

Languages