The http-server is used for local development and manual testing.
To install http-server (globally):
npm install --global http-server
To setup local directory structure
# Windows commands
cd <project-dir>
mkdir ..\http-server.public
mklink /J ..\http-server.public\sudoku .
OR
# Linux/Unix commands
cd <project-dir>
mkdir -p ../http-server.public
ln ./ ../http-server.public/sudoku/
http-server ../http-server.public/ -c30 -p 9088
# then, open http://localhost:9088/sudoku/index.html
- Push the changes to remote (
git@github.com:JohnWu-Pro/sudoku.git
). - Open https://johnwu-pro.github.io/sudoku/index.html?v=123.
- NOTE: Using
?v=<random-number>
to workaround issues caused by caching to pageindex.html
.
- NOTE: Using