Skip to content

pavel-ilin/health_tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Health Tracker

Main perpus of this application si to help people track their health parametrs such as blood pressure, cholesterol, metabolic and vitamins panels.

Demo

Check out Health Tracker app

Key Features

  • Login/Signup secured with bcrypt & JWT Auth
  • State managed with Redux
  • Data visualized with React-VIS npm package
  • Using NYC Open Data to get list of locations based on user zipcode
  • Using Google maps API to desplay blood pressure tests locations based on user zipcode

Installation

Prerequisites

Health Tracker app is built using React, Ruby, Ruby on Rails & PostgresQL. Make sure you have the latest versions of all four components installed before cloning this repo. You can find their official installation guides below:

Frontend

  • Clone the most recent branch in this repository
  • Run npm install in your bash-enabled terminal to make sure all dependancies are installed

You can run npm start but you will not be able to login and use the application correctly.

Backend

Windows Installation

  • Add the line gem 'wdm', '>= 0.1.0' to Gemfile before running bundle install

MacOS Installation

  • Remove the line gem 'wdm', '>= 0.1.0' from Gemfile before running bundle install

Universal Installation

  • Clone the most recent branch from The Backend Repository
  • Run rvm use Ruby-2.6.1 to make sure you are using the correct version of Ruby
  • Run bundle install to install all gems/dependancies required for SmartApp
  • Run rails db:create to create a local PostgresQL database
  • Run rails db:migrate to create the tables/columns required for proper SmartApp functionality
  • Run rails db:seed to populate the columns with rows of "real" data
  • Create a file called .env in the backend directory (/root/backend/) and add HMAC_SECRET = "<insert secret string here>" to the file

First Start

If you have not received any errors/resolve any errors you have encountered during Frontend/Backend Installation, you are ready to start Health Tracker for the first time.

First:

  • Run rails s to start the backend server on port 3000.

The server must run on 3000 as all the fetch requests on the frontend point to port 3000. If you can not or do not want to run the backend server on port 3000, you will need to update all frontend fetch requests accordingly.

Second:

  • Run npm start in a separate bash terminal window to start the frontend server on port 3001

Third:

  • You can now access Frontend portion of the app by visiting: http://localhost:3001
  • You can now access Backend portion of the app by visiting: http://localhost:3000

Thats it! Have fun breaking/fixing/doing whatever you want with Health Tracker.

If you have received any errors during this process, feel free to contact me so I can help you and update this readme accordingly

  2020 (c) Pavel Ilin

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published