A Solid Pod application designed to store information about personal wellness along several personal wellness dimensions. This product is designed to have sections for Medical records, Calorie Tracking, Habit Tracking, Mental Health Chat Bot, Physical Fitness, and Financial Tracking.
This software is provided "as is" without any warranty of any kind, express or implied. This includes, but is not limited to, the warranties of merchantability, fitness for a particular purpose, and non-infringement.
The authors and copyright holders of this software disclaim all liability for any damages, including incidental, consequential, special, or indirect damages, arising from the use or inability to use this software.
The authors of this software are not medical, financial, mental health experts, nor experts along any of the particular wellness directions. This software should not be used to replace expert advice in any of the wellness domains. The information and functionality provided through the software is for research and educational purposes. Seek wellness advice from licensed professionals in the respective wellness domain.
- Choose an IDE (Integrated development environment)
- An IDE is a software application that helps programmers develop software code efficiently. It increases developer productivity by combining capabilities such as software editing, building, testing, and packaging in an easy-to-use application
- Suitable Options: IntelliJ IDEA, Eclipse, VSCode (My Preference)
- If you have a mac, there's a chance you may already have git installed
- Run git --version to check
- If it tells you git is not installed then there are a couple ways to do it.
- This link goes through the options for mac: https://macpaw.com/how-to/install-git-mac
- If you have homebrew installed or install it, there are some very simple commands to install git and nodeJS.
- For non-Mac users, Download Git
- Create GitHub Account
- Check that it is downloaded via command prompt/terminal: Run command ‘git --version’
- Familiarize yourself with basic Git Commands
- Review the project documentation reguarding branching
- Download NodeJs
- If you have a mac, you can either use the installer, use HomeBrew, or bash
- To use HomeBrew run ‘brew install node’
- Follow other guides on how to install NodeJS
- Check that it is downloaded via command prompt/terminal: Run command ‘npm -version’
- Click on the code button and copy the URL to clipboard
- Run ‘git clone https://github.com/jeffreywallphd/PersonalWellnessPod.git’ in your command prompt/terminal or the terminal within your IDE
- You want to run this command where you would like your project directory to be. You may want to create a folder for all your repositories, or put it in a folder for this class.
- The package.json file is the central place to configure and describe how to interact with and run your application. This has been set up by the prior class.
- You should be able to access the file at the very bottom of the directory. This file tells us to run a couple different scripts
- To start the site:
- Run ‘npm start-frontend’ to just start the front end
- Run ‘npm start-backend’ to just start the back end
- To get the entire site up and running just run ‘npm start’ which runs both of those commands concurrently, most of you will just need to run this.
- It may ask you to install a couple other things, just run the commands it tells you
- it will say something like ‘Server running on http://localhost:8080’ and this should automatically open a new tab with the site running
-
Click the Login button in the Health Harbor application and it will bring you to an Inrupt PodSpaces page and ask for your username and password.
-
If you have not created an account click Sign Up and enter your information. Make sure you put an email you can access because it will require you to verify your email by clicking a link. Usernames and emails must be unique across all users. Click the verification link in your email and then click continue on the PodSpaces page.
-
Go to https://id.inrupt.com/ and login if necessary. Click the "Get A Pod" button. Your webID profile should now be set up. This step should only need to be completed once each time you set up an account.
- Run the command 'npm install dotenv --save'
- Create a '.env' file in the root of the project
- Add any variables necessary to hold your private keys
- API_KEY_VAR_EXAMPLE = 'yourAPIKey'
- Then reference this variable within your code where you fetch the API
- const apiKey = process.env.API_KEY_VAR_EXAMPLE;
- fetch(
https://APILink&apikey=${apiKey}
)- make sure to use backticks for the link to reference the apiKey variable
Please be sure to read through the Best Coding Practices document before you start collaborating.
As you use git and GitHub to manager your contributions, follow the guidelines outlined in the Git Practices document. Remember to pull from main regularly to avoid code conflicts.
The following are some ideas for future implementation:
- Electron implementation to allow for a desktop application.
- Rechart implementation for data visualization