This project aims to create a healthier work environments for those that spend lots of time on their computers during the day. From reminding you take eye breaks, to making sure you are drinking enough water, Progra-fit is the tool for you.
- Make sure that Node.js is installed. To check if it is, type
npm
in your terminal. If you get an error, it's not installed. If you get a bunch of text, it is. - Navigate into your cloned fork of the repository and type
npm install
. This will install all of the required dependencies for React. - To run the project, type
npm start
.
In order to contribute to this project, the following steps must be done in order to do so successfully. Everything that you write has to come through me (i.e a pull request) that can then be reviewed and put into the project. If you have any questions or queries, ask before continuing.
-
Create a fork of the project.
-
Clone your fork (your version of the repository) locally.
-
Navigate into your cloned directory.
cd hack-the-north
-
Add the upstream (if it doesn't already exist):
git remote add upstream git@github.com:Toranian/hack-the-north.git
-
Get the latest changes:
git pull upstream main
-
Create a new branch with a name specific to the issue or feature or bug you will be working on:
git checkout -b yourbranchname
-
Write code!
-
Commit your changes (you may need to
git add .
if you created any new files that need to be tracked). If your changes resolve a specific issue on github, then add "Closes #123" to the commit where 123 is the issue number:
git commit -am "Useful description of your changes; Closes #123"
-
Make sure your develop branch is up to date again and rebase onto any changes that have been made upstream since you started the branch:
git pull upstream main --rebase
(this command joins several steps: updating your local develop branch, and then rebasing your current feature branch on top of the updated develop branch) -
Push your branch to your fork of the project on github (the first time you do this, it will create the branch on github for you):
git push origin yourbranchname
-
Go to your fork of the repository on GitHub (you should see a dropdown allowing you to select your branch)
-
Select your recently pushed branch and create a pull request (you should see a button for this)
-
Complete pull request.
-
Start work on another feature by checking out the develop branch again:
git checkout develop
-
Start again at Step 3 and repeat!
- Ryan Nicholas Permana (h4ppyturt1e)