-
Install NodeJS and npm Follow instructiion at: https://nodejs.org/
-
Install Yarn
npm install --global yarn
-
Install git (should already be installed on MacOSX)
-
Clone code from GitHub:
git clone https://github.com/1thing-org/hatecrimetracker-frontend.git
-
Change configuration in
hatecrimetracker-frontend/src/configs/appConfig.js
Make sure
api_endpoint: 'https://api.hatecrimetracker.1thing.org'
-
Under hatecrimetracker-frontend, run:
yarn
yarn start
./deploy
- creates a production build / minified (not needed at this stage)
When configure Google Cloud Bucket to hold static files, make sure in the website configuration, set 404 page to index.html too. Otherwise you will get NoKey error when loading any page like /home,/admin, etc.
Vuexy React doc: https://pixinvent.com/demo/vuexy-react-admin-dashboard-template/documentation/
- Create your own GitHub account
- Fork the repository
- Make changes and commit to your forked repository. The changes can be in main or any branches in your own fork.
- Create Pull Request from your own fork to https://github.com/1thing-org/hatecrimetracker-frontend
- Wait for reviewer to review and merge the PR
- Install HomeBrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Use HomeBrew to install NodeJS V14
brew install node@14
- Set PATH:
- Open ~/.zshrc
- Add the following lines and save:
export PATH=/opt/homebrew/bin:$PATH
export PATH="/opt/homebrew/opt/node@14/bin:$PATH"
* Make .zshrc executable
chmod +x ~/.zshrc
- Install Yarn
npm install yarn
- Make sure git is installed properly
- Run git in a terminal, it might ask you to install Command Line Tools. Hit Install to install it.
- Install XCode from AppStore
- Install vscode
- Go to https://code.visualstudio.com, download and install vscode.
- Optionally install the following plugins:
- React
- Python
- GitHub Copilot, need to sign in to GitHub when install
- Clone repository
- Build
- Open a terminal, go to a hatecrimtracker-frontend folder
- Run
yarn; yarn start