The code for the zedshaw.games demo site for learnjsthehardway.com.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

975 B

Getting Started

Quick notes on how to get this code running.

git clone --depth 1 git@git.learnjsthehardway.com:zedshaw/ljsthw-project-template.git myproject
cd myproject
npm install

If you have problems with browsers use:

PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install
./bando.js init

On windows you run the bando.ps1 script instead, using just bando:

`` ./bando init


Note: Sometimes this fails if you have redis running already.  You have to manually delete redis and start it again:

ONLY IF REDIS FAILS

npx pm2 delete redis ./bando.js init # WIN: ./bando init


In another window:

npm run DANGER_ADMIN


When it's ready, hit enter in the bando.  This will load a page where you can register a user, and once you've done that, it'll tell you to hit enter again in the bando window.

After you do that it'll make your user an admin, so go back to the browser and hit the button.  Then, you'll be ready.