Total Pageviews

Sunday, 7 December 2025

基于nodejs的一款游戏程序Folio 2019


Download Node.js. Run this followed commands:

# Install dependencies
npm install

# Serve at localhost:1234
npm run dev

# Build for production in the dist/ directory
npm run build
from  https://github.com/brunosimon/folio-2019
(https://github.com/briteming/folio-2019)
------------------------------------------------
补充说明:
在本地机器上,
git clone https://github.com/brunosimon/folio-2019 
cd folio-2019
npm install
npm run build
(会在当前目录下,生成dist目录)
cd dist
12799@DESKTOP-B6LK9IO MINGW64 ~/folio-2019/dist (master)
$ ls
assets/ draco/ favicon/ index.html models/ social/ sounds/

(可见
dist目录就是一个静态网站的根目录
$ php -S 127.0.0.1:1234
(或者运行python3 -m http.server 1234)
在你的浏览器里访问127.0.0.1:1234 即可看到网站效果。
还可以导入项目https://github.com/briteming/folio-2019到vercel.com/new中,就像我以前导入
静态博客程序那样操作。我得到了网址https://folio-2019-nu.vercel.app/。
https://bruno-simon.com/,程序作者搭建的网站。
 
 
 
 
 
 

No comments:

Post a Comment