Cool but simple web-app mobile-compatible to gamify your life and self-improvement https://lifepex.sceptique.eu/
Go to file
Arthur POULET 0a89fe1c36
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
Merge branch 'feature/atests'
2021-06-20 00:16:27 +02:00
config Improve registering new users with default value and redirection to today 2021-06-01 20:08:04 +02:00
documentation doc: add a french user guide 2021-06-12 13:14:51 +02:00
init favorite: add bookmark system to highlight favorites 2021-06-11 17:55:59 +02:00
public keep public/doc empty folder to avoid init errors 2021-06-14 23:17:45 +02:00
scripts img: add favicon 2021-06-11 21:40:06 +02:00
src test: add basic test coverage for pex2 2021-06-19 22:58:28 +02:00
test test: add basic test coverage for pex2 2021-06-19 22:58:28 +02:00
.drone.yml ci: fix ci configuration with env variable 2021-06-20 00:06:12 +02:00
.gitignore init: Init database 2021-05-01 18:46:45 +02:00
Gemfile test: Add basic test framework and POC 2021-06-19 18:18:25 +02:00
Gemfile.lock test: Add basic test framework and POC 2021-06-19 18:18:25 +02:00
README.md ci: add ci configuration for drone 2021-06-19 23:51:13 +02:00
Rakefile test: Add basic test framework and POC 2021-06-19 18:18:25 +02:00
config.ru test: Add basic test framework and POC 2021-06-19 18:18:25 +02:00

README.md

LifePex

Build Status

Dependencies

  • git
  • ruby 3
  • sqlite or postgresql

Setup

# Install dependencies
bundle install

# SQLITE
./init/database.rb sqlite://sqlite.db

# POSTGRESQL
psql -U postgres postgres -c "CREATE USER root WITH PASSWORD 'toor' SUPERUSER;"
psql -U postgres postgres -c "CREATE DATABASE life_pex"
./init/database.rb postgres://root:toor@localhost/life_pex

Start

export LIFEPEX_SECRET="put something random here" # recommanded
export LIFEPEX_BASE_URL="https://mydomain/base" # recommanded
export LIFEPEX_DB="sqlite://sqlite.db" # REQUIRED
# you may also want to use postgres or something
# export LIFEPEX_DB="postgres://root:toor@localhost/life_pex"
# export LIFEPEX_BIND="0.0.0.0" # you may want to bind against something else than 127.0.01
# export LIFEPEX_ENV="production" # why not hide stacktraces ?
./src/app.rb

recap image today image

Generate documentation

./init/doc.rb
xdg-open ./public/doc/index.html

Testing

If you want to run the test, simply type rake test (you will need the startup env variable to be set first).