A repository hosting the frontend code for the Scholar Power application. Deployed site can be found on: https://deft-torte-4578e5.netlify.app/.
- Set up Git on your machine.
- Some information on how to set up can be found here.
- Clone the repository to your local machine.
- If using SSH:
git clone git@github.com:MoistCode/scholar-power.git
- If using HTTPS:
git clone https://github.com/MoistCode/scholar-power.git
- If using SSH:
- In the terminal, navigate into the cloned repository.
- Run
npm i
to install dependencies.- If an error stating that
npm
isn't installed, look into installing Node.js.
- If an error stating that
- Run
ionic serve
.- If an error comes up, the Ionic CLI may been to be installed using
npm install -g @ionic/cli cordova-res
.
- If an error comes up, the Ionic CLI may been to be installed using
- Now a local development server of the code is ready. Navigate to
http://localhost:8100/
in a browser to get started.
- Ensure you're on the main branch by running
git checkout main
. - Get the latest work from the main branch by running
git fetch origin && git merge --ff-only origin/main
. - Checkout a feature branch by running
git checkout -b WHATEVER-YOU-WANT-TO-NAME-YOUR-BRANCH
.- For example,
git checkout -b adding-readme
.
- For example,
- Add and commit your work as needed.
- When ready, push your branch by running
git push origin WHATEVER-YOUR-BRANCH-NAME-IS
.- For example,
git push origin adding-readme
.
- For example,
- After pushing, create a pull request. This can be done easily after pushing your feature branch. There is a prompt after pushing that states:
Create a pull request for 'YOUR-BRANCH-NAME' on GitHub by visiting:
followed by a link. Head to that link to create a pull request. Pull requests must be approved before pushing the work to the main branch. Another way to do this is to navigate tohttps://github.com/MoistCode/scholar-power
in the browser which may show a green "compare & pull request" button.