Thanks for your interest in vizarr
! I welcome any input, feedback, bug reports, and contributions.
Please do not hesitate to reach out if you have any questions!
In order to make changes to vizarr
, you will need to fork the repository. Clone your fork
of the repository to your local machine and change directories:
git clone https://github.com/your-username/vizarr.git
cd vizarr
Set the upstream
remote to the base vizarr
repository:
git remote add upstream https://github.com/hms-dbmi/vizarr.git
Install the dependencies to develop and build vizarr
via pnpm
.
pnpm install
Note: You need to have Node.js (v20.0 or later) to build and develop
vizarr
. I recommend usingnvm
orfnm
to manage different version of Node.js on your machine.
pnpm dev
The dev
command will start a development server on http://localhost:5173
which you can navigate to in your web browser. You can "live" edit the contents
of any of the files within src/
or public/
when running this server;
changes are reflected instantly in the browser. Stop the development server
when you are done making changes.
src/
- contains all TypeScript source codepublic/
- contains all static assets required for the site
Have a look at the other script
commands in package.json
for the project. These are standard to any JS
build and can be executed by running pnpm <command>
.
Create a new feature branch:
git checkout main -b your-feature-branch-name
Add and commit your changed files.
Update your remote branch:
git push -u origin your-feature-branch-name
You can then make a pull-request to vizarr
's main
branch. When making a
pull-request, your code will be checked for linting with biome
. Please run
pnpm fix
to automatically format your code when making a pull-request.
Build a production version of the site:
pnpm version [<new version> | major | minor | patch]
pnpm publish