Skip to content

thomas-chong/comp4462-project-gp1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

US Mass Shooting Data Visualization

Python PyTorch React

About

This is the group project for the course "COMP4462 - Data Visualization" (2021 Fall).

Contributors:

This dashboard visualizes data of US mass shooting events from 1966~2017. We obtained the dataset from Kaggle.

Screenshot

The Jupyter notebooks that contain the data preprocessing code can be found in the src/data directory.

Development

# 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

Yarn

This project uses Yarn as the package manager instead of NPM (Node Package Manager) because Yarn has faster performance than NPM.

⚠️ Use the yarn add XXXX command (documentation) instead of npm install XXXX command when you wish to install new dependencies in the future.

Deploying to GitHub Pages

To deploy the website to GitHub Pages, run the following command:

npm run deploy

Prettier

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.

Auto-Formatting in VS Code

If you are using VS Code, you can use Prettier to auto format your code files during save:

  1. Open VS Code and go to the "Extensions" tab in the sidebar
  2. Install the Prettier extension
  3. Open VS Code Settings via "Ctrl + ,"
  4. Search for "Editor: Default Formatter" and set to "Prettier - Code formatter":
  5. Next, search for "Editor: Format On Save" and tick the checkbox
  6. Prettier will now auto-format your .js, .jsx, and .md files

Auto-Formatting For Staged Changes

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 commit
  • lint-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.

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 69.7%
  • JavaScript 29.2%
  • Other 1.1%