patternize / patternize.io

Algorithms and Data Structure Visualization 🔬 An interactive E-Book
https://patternize.github.io/
MIT License
41 stars 3 forks source link

Patternize.io

Set up the project on your local environment

// Find a directory on your local machine
$ git clone https://github.com/patternize/patternize.io.git

// cd into your project folder
$ cd patternize.io

// run yarn
$ yarn

Local Development

$ yarn start

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
$ cp -a build/ <your-repo-dir>/

// or you could figure out a better way to do this, because cp command will not delete deprecated files. Once in a while, you will have to wipe the repo and regenerate, then deploy a fresh build

Inspirations