This is the group project for the course "COMP4462 - Data Visualization" (2021 Fall).
Contributors:
- owen-hwlee - Front-end dashboard
- AnsonH - Front-end dashboard
- thomas-chong - Data preprocessing and NLP
- akshatbansal1 - Data preprocessing
This dashboard visualizes data of US mass shooting events from 1966~2017. We obtained the dataset from Kaggle.
The Jupyter notebooks that contain the data preprocessing code can be found in the src/data
directory.
# 1. Clone the project
git clone https://github.com/owen-hwlee/comp4462-project-gp1.git
cd comp4462-project-gp1/
# 2. Install `yarn` (am alternative package manager to npm) if you haven't
npm install -g yarn
# 3. Install dependencies
yarn
# 4. Start the local development server
npm start
This project uses Yarn as the package manager instead of NPM (Node Package Manager) because Yarn has faster performance than NPM.
⚠️ Use theyarn add XXXX
command (documentation) instead ofnpm install XXXX
command when you wish to install new dependencies in the future.
To deploy the website to GitHub Pages, run the following command:
npm run deploy
This project uses Prettier to format your code files, ensuring that the entire codebase has a consistent code format. The .prettierrc
file at the root of the repo contains several format options (visit this link to learn more about available format options).
If you wish Prettier to format every code file of the repo in one go, run npm run format
.
If you are using VS Code, you can use Prettier to auto format your code files during save:
- Open VS Code and go to the "Extensions" tab in the sidebar
- Install the Prettier extension
- Open VS Code Settings via "Ctrl + ,"
- Search for "Editor: Default Formatter" and set to "Prettier - Code formatter":
- Next, search for "Editor: Format On Save" and tick the checkbox
- Prettier will now auto-format your
.js
,.jsx
, and.md
files
To ensure that all your staged changes are formatted by Prettier before committing them, this project uses the following packages:
husky
- Run scripts automatically every time you make a commitlint-staged
- Run Prettier to format only the staged changes when you make a commit
This automatically works once you finished setting up your project for local development.