sidaroz / libits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Libits

An user habit tracking website, where users can create and delete habits, give each habit its description , the amount of repetitions they want and the frequency of this habit. When a user completes a habit in the chosen time, the streak value is increased by 1.

Demo

Remote Hosting

Contributors

  • Anwar
  • Jaxsan
  • Sami
  • Sidar
  • Melissa

Installation

  • Clone or download the repo
  • Open terminal and navigate to api folder
  • Input cd api in terminal to navigate to folder with package.json file
  • Run npm install to install dependencies

Usage

  • Make sure you have Docker running
  • Run bash _scripts/startDev.sh to get the API and DB containers running and then open the client on live server
  • Run bash _scripts/startTest.sh to execute the tests on the backend
  • Run bash _scripts/tearDown.sh to stop and delete the containers.

Do not run startDev and startTest simulanteously.

Technologies

Frontend

  • HTML
  • CSS
  • JavaScript
  • Bootstrap

Backend

  • Node.js
  • Express
  • PostgreSQL
  • JWT
  • Docker

Design

Homepage

Screenshot 2022-04-13 at 17 49 08

Register

Screenshot 2022-04-13 at 17 49 29

Login

Screenshot 2022-04-13 at 17 49 19

Habits

Screenshot 2022-04-14 at 10 19 44

Add Habits

Screenshot 2022-04-14 at 10 19 33

Test

  • Test coverage 88%

Screenshot 2022-04-13 at 14 59 46

Wins

  • After registering the page automatically login
  • User authentication and authorisation
  • Add habit form pops down when clicked on
  • Each habit can be deleted using the X button on the right
  • + button on the left increase the count by one for each habit
  • Once the counter reached the goal, the habit will be crossed out
  • Adding Streak functionality

Challenges

  • Streak

Future Features

  • Allowing users to change email/password
  • Allowing users to log in with username aswell as email

About


Languages

Language:JavaScript 84.8%Language:CSS 11.9%Language:HTML 2.8%Language:Shell 0.5%Language:Procfile 0.0%