To get a local copy of the project, follow these steps.
Make sure you have the latest npm package installed
npm install npm@latest -g
Make sure you have the latest version of node installed.
We recommend using a node manager to switch between node versions.
If you are on Mac or Linux you can install nvm to manage your node versions. For windows, you can use nvm for Windows
nvm install 18.16.0 (or higher)
nvm use 18.16.0 (or higher)
git clone https://github.com/spacelabdev/fund_lab_force
npm install
npm run dev
In general, the flow goes like this:
git pull
) (in your main branch)git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git rebase origin main
)git push origin feature/AmazingFeature
)Never push changes directly to main, always use a feature branch!
Delete your branches once they're merged.
When fixing a bug or creating a new feature, please use a separate branch called a feature branch.
To check out a feature branch:
git checkout -b feature/amazingFeature
Branch Naming Conventions:
Merge and rebase are two strategies for integrating branches in git.
Merge:
git rebase origin main
Rebase:
git merge origin main
Use rebase ONLY when you are working on a private branch, meaning you are the only developer making changes to the branch, and you haven’t created a PR yet. You should rebase your feature branch every time before creating your PR, or if there are changes that have been made to main that you need to incorporate in your branch.
Use merge when on public branches, meaning there are multiple people making changes to the branch, or you have already submitted a PR and need to update something in the code.
To reset your branch to match the remote you can run:
git reset --hard origin/"Your branch"
PR's should be submitted when your feature/bug-fix is complete and has been tested.
Before submitting a PR, run through this code checklist:
Once you complete the checklist, open a PR and include a short description of what you accomplished. If you built a new feature, include a screenshot of the UI.