Skip to content

yuchida522/onTrack

Repository files navigation

OnTrack

OnTrack is a web app that lets users track their running progress and set goals by searching and saving races they wish to participate

Table of Contents

Tech Stack

Front End: HTML, Jinja2, CSS, JavaScript, AJAX, Bootstrap, chart.js
Back End: Python, Flask, PostgreSQL, SQLAlchemy

Features

GET STATS: Login to view your profile that gives key stats of your progress like number of runs, total distance, mileage, and pace
stats

TRACK AND STORE RUNS: log your runs to keep track
track

SET GOALS: Search and find a race to set goals for your training. Keep track of whether you've signed up
goals

Setup

Requirements: Python3, PostgreSQL

  1. Clone repository:
$ git clone https://github.com/yuchida522/onTrack.git
  1. Install virtualenv:
pip install virtualenv
  1. cd to /onTrack and run the following command to create a virtual environment:
$ virtualenv env
  1. Activate the virtual environment:
$ source env/bin/activate
  1. Install dependencies:
$ pip3 install -r requirements.txt
  1. 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':
    Secret

  2. Add the key to your environmental variables:

$ source secrets.sh
  1. Create OnTrack database called 'races' with PostgreSQL:
$ createdb races
  1. 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
  1. Run the app from the command line:
$ python3 server.py

Visit localhost:5000 on your browser. Enjoy!

About the Developer

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

About

Hackbright Capstone project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published