Welcome to Argument-Diagram! This project is an interactive visual tool used to help diagram arguments.
It is hosted on https://argument-diagram.bram-hub.com.
To get started contributing, please follow the following steps
Most MacOS devices come with Git already installed. You can check by opening Terminal and running git --version
.
- If you would like a graphical interface, install the GitHub Desktop client for Mac/Windows.
- If using WSL, run
sudo apt-get install git
- If you don't have Git installed, download and run the installer
- NOTE: You can accept most default settings, be sure to add git to PATH if asked
- You will also need to authenticate your terminal with a personal access token. Please visit the GitHub Docs for more details.
If using WSL, run
sudo apt-get install nodejs
sudo apt-get install npm
Otherwise, download the Node.js installer
This should install both node
and npm
. You can check by running node --version
and npm --version
and making sure
you don't recieve an error.
- Open your terminal/command prompt and navigate to the folder that you want to contain the repo
- Run
git clone https://github.com/joekrystowski/Argument-Diagram.git
to clone the repo - Change directory into the newly made project folder
cd Argument-Diagram
- Install dependencies with
npm install
- Navigate to the project repo in your terminal
cd path/to/project
(Windows uses\
instead of/
) - Run
npm start
Make sure you keep this process running otherwise you won't be able to use the site/view changes - Visit
http://localhost:8000
- Compile new changes to Typescript and SASS with
npm run build
, or (Ctrl/Cmd)+Shift+B and Enter in Visual Studio Code
You should never directly edit .js
and .css
files as those changes will be overwritten upon compiling.
Any changes you make to the project will automatically be detected and updated within a few seconds.
The main branch of the repository is locked, meaning you must push changes on a separate branch.
The main workflow is as follows:
- Checkout main branch
git checkout main
- Pull any recent changes from remote
git pull
- Make a new branch for what you will be working on
git checkout -b your-branch-name-here
- Make changes (don't forget to compile)
- Check all the modified files are things you meant to change
git status
- Track all changes
git add .
- Make a commit
git commit -m "message describing changes"
- Push branch to remote
git push origin your-branch-name-here
- Go to https://github.com/joekrystowski/Argument-Diagram/ and make a pull request on your branch
- Someone else Review & merge pull request
This project is built on the open source Joint.js library -> https://resources.jointjs.com/docs/jointjs/v3.3/joint.html
See live website at https://argument-diagram.bram-hub.com