Skip to content
Privacy focused website analytics.
Racket Vue JavaScript CSS Shell Dockerfile Other
Branch: master
Clone or download
Bogdanp ci: run a pg service and install deps before testing
This will still fail.  I'm going to have to set up a custom Docker
image w/ postgres that includes the HLL extension.
Latest commit 782c36a Nov 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
assets
example
migrations
nemea
scripts
static
.babelrc
.dockerignore
.env.default
.eslintrc.json
.gitignore
.nvmrc
COPYING
Dockerfile
Procfile
README.md
package-lock.json
package.json

README.md

nemea

Take control of your website analytics!

screenshot

Usage

See the example directory for an example of how you might run nemea using docker and docker-compose.

Developing

Requirements

nemea is a Racket application so you'll need to install that and you'll need Node.js version 10.6.0 to build the static assets.

You'll also need a running PostgreSQL instance.

First-time setup

Install all the prerequisites:

$ raco pkg install nemea/
$ npm install
$ cp .env.default .env

Set up the databases:

$ psql <<-SQL
create user nemea with password 'nemea' login;
create database nemea;
grant all privileges on database nemea to nemea;
create database nemea_tests;
grant all privileges on database nemea_tests to nemea;
SQL
$ echo "create extension if not exists hll;" | psql -Unemea -dnemea
$ echo "create extension if not exists hll;" | psql -Unemea -dnemea_tests

Download Maxmind's geolocation database:

$ curl -ls https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz | tar -xz '*.mmdb' \
    && mv GeoLite2-Country_*/GeoLite2-Country.mmdb assets/data/GeoLite2-Country.mmdb \
    && rm -r GeoLite2-Country_*

Running the development server

$ raco chief start

Running the tests

$ raco test nemea/

License

nemea is licensed under the GPL. Please see COPYING for details.
You can’t perform that action at this time.