OnTrack is a web app that lets users track their running progress and set goals by searching and saving races they wish to participate
Front End: HTML, Jinja2, CSS, JavaScript, AJAX, Bootstrap, chart.js
Back End: Python, Flask, PostgreSQL, SQLAlchemy
GET STATS: Login to view your profile that gives key stats of your progress like number of runs, total distance, mileage, and pace
TRACK AND STORE RUNS: log your runs to keep track
SET GOALS: Search and find a race to set goals for your training. Keep track of whether you've signed up
Requirements:
Python3, PostgreSQL
- Clone repository:
$ git clone https://github.com/yuchida522/onTrack.git
- Install virtualenv:
pip install virtualenv
- cd to /onTrack and run the following command to create a virtual environment:
$ virtualenv env
- Activate the virtual environment:
$ source env/bin/activate
- Install dependencies:
$ pip3 install -r requirements.txt
-
Make an account with Active API and get a free API key
** when asked for which API that the application will use, check off the "Issue a new key for Activity Search API v2" box. That is all you will need. Store the key in a file named 'secrets.sh':
-
Add the key to your environmental variables:
$ source secrets.sh
- Create OnTrack database called 'races' with PostgreSQL:
$ createdb races
- Seed database with data (optional - provided data is created by Faker, do this if you want to see what the rendered results will look like with more data) :
$ python3 seed_database.py
- Run the app from the command line:
$ python3 server.py
Visit localhost:5000 on your browser. Enjoy!
Before joining Hackbright Academy, Yuri was a successful classical violinist. She had a full schedule of concerts to play every weekend and maintained a violin studio of pre-college students. While she loved playing violin and teaching, she knew this was not her end game. Her interest in software engineering sparked when she started learning HTML and CSS to build her personal website. She found similarities between learning programming languages and learning music, and suddenly she was hooked. She continued to learn on her own, and after moving to the Bay Area, she enrolled in Hackbright to further deepen her knowledge. Upon graduation, she looks forward to pursuing a career in software engineering and continuing building her skills.
Learn more about Yuri on her LinkedIn