Coder Social home page Coder Social logo

xy-luo / hatecrimetracker-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 1thing-org/hatecrimetracker-frontend

0.0 0.0 0.0 14.37 MB

Anti-Asian Hate Crime Tracker - Report Incidents

Home Page: https://hatecrimetracker.1thing.org

Shell 0.21% JavaScript 86.50% CSS 4.44% HTML 2.75% SCSS 6.10%

hatecrimetracker-frontend's Introduction

Dev Setup

  1. Install NodeJS and npm Follow instructiion at: https://nodejs.org/

  2. Install Yarn

    npm install --global yarn

  3. Install git (should already be installed on MacOSX)

  4. Clone code from GitHub:

    git clone https://github.com/1thing-org/hatecrimetracker-frontend.git

  5. Change configuration in hatecrimetracker-frontend/src/configs/appConfig.js

    Make sure api_endpoint: 'https://api.hatecrimetracker.1thing.org'

  6. Under hatecrimetracker-frontend, run:

yarn
yarn start

Deployment

./deploy

  • creates a production build / minified (not needed at this stage)

Other notes

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/

How to contribute

  1. Create your own GitHub account
  2. Fork the repository
  3. Make changes and commit to your forked repository. The changes can be in main or any branches in your own fork.
  4. Create Pull Request from your own fork to https://github.com/1thing-org/hatecrimetracker-frontend
  5. Wait for reviewer to review and merge the PR

Develop on MacBook with M1 Chip

  1. Install HomeBrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Use HomeBrew to install NodeJS V14
brew install node@14
  1. 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
  1. Install Yarn
npm install yarn
  1. 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.
  2. Install XCode from AppStore
  3. 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
  4. Clone repository
  5. Build
    • Open a terminal, go to a hatecrimtracker-frontend folder
    • Run yarn; yarn start

hatecrimetracker-frontend's People

Contributors

lima01 avatar httplife avatar chloejkchoi avatar dependabot[bot] avatar jiayingxie avatar loichau1997 avatar 1thingagainstracism avatar becky-hu-82 avatar jiale-lyu avatar nutjane avatar sunnystardust avatar mengzhe-madeline-zhang avatar mytotoro avatar sguo114 avatar joyvivian avatar xy-luo avatar kbold avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.