Skip to content

rkcf/dailio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dailio

A self hosted daily task web app.

Demo site available at http://dailio-demo.rkcf.me

username: demouser

password: demopassword

Use

The key to forming new habits is repetition and consistency. Completing a task every day will help form positive behavioral patterns. Eventually completion of this task will become automatic.

  1. Create a task.
  2. Complete the task.
  3. Every day the task completion resets, keep completing them to watch your streak counter go up.

Compatibility

Currently tested working with Firefox 59+ and Chromium 65+. No testing has been done with any other browsers.

Deployment

Edit conf/nginx/nginx.conf to change the server_name in the server block.

Edit conf/production-env.env to change the DJANGO_SECRET_KEY

With Docker

docker-compose up

Add bin/dailio-docker-cron-reset.sh to your daily crontab

Attach to the container to create your user

docker exec -it dailio_django-wsgi_1 /bin/ash
cd dailio
python3 manage.py createsuperuser

And you should be good to go.

Manual

Copy backend code to /var/www/dailio Copy dist to /var/www/webpack-static Copy conf/django/uwsgi.ini to /var/www/

Install dependencies pip install -r backend/requirements.txt

Source the environment variables source conf/production-env.env

Collect static resources and create the database:

python manage.py collectstatic
python manage.py migrate

Create your user with python manage.py createsuperuser

Start app server with uwsgi --ini /var/www/uwsgi.ini

Copy conf/nginx/nginx.conf to /etc/nginx

Start nginx

Contributing

Install Dependencies

cd frontend
npm install
cd ../backend
virtualenv .venv
. .venv/bin/activate
pip install -r requirements.txt

Build static frontend components make buildfrontend

A dev server can be started up with make devserver (tmux required)

Tests can be run with make testall