Tool for managing congregation territory cards
Branch: master
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.
.idea
db
docs
env
resources Remove importing Dec 15, 2018
scripts
src/territory_bro
test/territory_bro
web
.babelrc Upgrade JavaScript dependencies Nov 2, 2018
.dockerignore
.flowconfig
.gitattributes
.gitignore
.travis.yml
COMPATIBILITY.md
Dockerfile-api
Dockerfile-web
LICENSE.txt
README.md
docker-compose.yml
localhost-territories.qgs
package.json
project.clj
territory-bro.iml
webpack.config.js
yarn.lock

README.md

Territory Bro

Territory Bro is a tool for managing territory cards in the congregations of Jehovah's Witnesses.

For more information, see https://territorybro.com

CI Build Status

Running

The easiest way to run this application is to use Docker.

Start the database and run database migration scripts to initialize the database

docker-compose pull
docker-compose up -d db
docker-compose run --rm api migrate

Start the application

docker-compose up -d

The application will run at http://localhost:8080

Stop the application

docker-compose stop

Stop the application and remove all data

docker-compose down

Developing

The tools for developing this project are Docker, Java 11 JDK, Leiningen, Node.js and Yarn. It might also be useful to have the PostgreSQL command line tools, even if you run the database with Docker.

Start the database

docker-compose up -d db

Run database migrations

lein run migrate

Start the API backend

lein run

Start the web frontend

yarn install
yarn start

The application will run at http://localhost:8080

Run tests

lein test
yarn run flow check
yarn run test

Running tests automatically on change

lein test-refresh
yarn run autotest    

Download dependency sources

lein pom
mvn dependency:sources

License

Copyright © 2015-2018, Esko Luontola

This software is released under the Apache License 2.0.