Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bogdanp/nemea
Privacy focused website analytics.
https://github.com/bogdanp/nemea
racket
Last synced: about 2 months ago
JSON representation
Privacy focused website analytics.
- Host: GitHub
- URL: https://github.com/bogdanp/nemea
- Owner: Bogdanp
- License: gpl-3.0
- Created: 2018-10-28T09:58:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T15:50:16.000Z (over 3 years ago)
- Last Synced: 2024-11-18T06:47:22.151Z (3 months ago)
- Topics: racket
- Language: Racket
- Homepage:
- Size: 1.84 MB
- Stars: 36
- Watchers: 8
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# nemea
Take control of your website analytics!
![screenshot](assets/img/screenshot.png)
## 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 chief
$ raco pkg install nemea/
$ npm install
$ cp .env.default .envSet up the databases:
$ psql -dpostgres <<-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 -dnemea
$ echo "create extension if not exists hll;" | psql -dnemea_testsDownload 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_**NB: As of Jan. 2020, you need to create an account to get access to MaxMind's GeoLite databases.*
### 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.
[Racket]: https://racket-lang.org
[Node.js]: https://nodejs.org
[PostgreSQL]: https://www.postgresql.org