├── README.md ├── example.png ├── index.html └── index.js /README.md: -------------------------------------------------------------------------------- 1 | # 一键老婆生成器 2 | 3 | - 安装n与Node.js 4 | MacOS与Linux 5 | ``` 6 | curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n 7 | bash n lts 8 | # Now node and npm are available 9 | ``` 10 | Windows于[官网下载](https://nodejs.org/zh-cn/download/)Node.js并安装 11 | 12 | - 安装ngrok 13 | - MacOS `brew cask install ngrok` 14 | - Linux 使用对应的包管理器安装,如 `yum install ngrok` 15 | - Windows [https://ngrok.com/download](https://ngrok.com/download) 16 | 17 | - 下载模型 [https://sketchfab.com](https://sketchfab.com) -------------------------------------------------------------------------------- /example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarsWang42/AR-Laopo/003d53e5c5e3f60aa295f8cd063bdc3fdad30523/example.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var http = require('http'); 3 | 4 | http.createServer(function (req, res) { 5 | fs.readFile(__dirname + req.url, function (err,data) { 6 | if (err) { 7 | res.writeHead(404); 8 | res.end(JSON.stringify(err)); 9 | return; 10 | } 11 | res.writeHead(200); 12 | res.end(data); 13 | }); 14 | }).listen(8080); --------------------------------------------------------------------------------