Main perpus of this application si to help people track their health parametrs such as blood pressure, cholesterol, metabolic and vitamins panels.
Check out Health Tracker app
- 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
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:
- 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.
- Add the line
gem 'wdm', '>= 0.1.0'
to Gemfile before runningbundle install
- Remove the line
gem 'wdm', '>= 0.1.0'
from Gemfile before runningbundle install
- 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 addHMAC_SECRET = "<insert secret string here>"
to the file
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