Skip to content

chrisleee/habitr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Habitr is a web application that allows you create habits and make sure you stick to them.

I created this as a replacement for https://chains.cc since I wanted a self-hosted, open-source version of the functionality.

Installation

This repo consists or the api and the client. The root folder has a package.json with scripts that allow for the installation and running of both concurrently.

$ npm install
$ npm install:both

You'll need to setup a Postgres database. You can use the docker-compose.yml to run one with docker-compose up -d postgres.

Environment variables

Copy the .env.example file to a new file named .env. Set the database variables to match your Postgres database credentials.

If you use the docker-compose.yml for Postgres, it'll pull the environment variables from the .env file.

Running the app

# development
$ npm run start

# build
$ npm run build

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

Habitr is MIT licensed.

About

Track habits!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published