Sleep Journal is a sleep tracking full-stack web application that allows the user to input sleep time and duration,
sleep quality, responses to other lifestyle fields, and view past entries. Sleep Journal facilitates personal change to
achieve better sleep and is built for anyone who is looking to improve his or her sleep.
View my YouTube demo!
User registration, log-in, and log-out
Log a daily entry on your sleep and related health and lifestyle fields
Backend:
Python, Flask, PostgreSQL, SQLAlchemy, Flask-SQLAlchemy
Templating:
Jinja
Frontend:
Javascript, jQuery, Bootstrap, HTML5, CSS3, Google Fonts, Font Awesome
Install a code editor such as VS code
Install Python3
Install pip, the package installer for Python
Install postgreSQL for the relational database
Clone or fork repository:
$ git clone https://github.com/alice-yt/hackbright-project
Create and activate a virtual environment inside the directory:
$ virtualenv env
$ source env/bin/activate
Install dependencies:
$ pip3 install -r requirements.txt
With PostgreSQL, create the sleepjournal database:
$ createdb sleepjournal
Create all tables and relations in the database and seed all data:
$ python3 seed_database.py
Run the app from the command line:
$ python3 server.py
Sleep Journal creator, Alice Tang, graduated from Wellesley College with a double major in Economics and English. Previously, she worked as a marketing/advertising analyst. She developed an interest in software engineering when she worked closely with software engineers and saw how they were able to solve consumer and business problems with programming. She is most passionate about products that fulfill a user need, the intersection between human behavior and technology, and elegant design. This is her first full-stack project.