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\calendar .
OR
# Linux/Unix commands
cd <project-dir>
mkdir -p ../http-server.public
ln ./ ../http-server.public/calendar/
http-server ../http-server.public/ -c-1 -p 9088
# then, open http://localhost:9088/calendar/index.html
- Push the changes to remote (
git@github.com:JohnWu-Pro/calendar.git
). - Open https://johnwu-pro.github.io/calendar/index.html?v=123.
- NOTE: Using
?v=<random-number>
to workaround issues caused by pageindex.html
caching.
- NOTE: Using