本应用是 使用node.js+html+Jquery+bootstrap完成, 需要node环境支持, 通过抓取B站动态的相关数据列表, 来实现抽奖功能
- 安装nodejs环境
- 在本项目文件夹里打开命令行 运行
npm install
安装下载依赖文件 - 运行
npm start
启动项目 - 用游览器访问 http://localhost:3000/ .
- 重命名
.env.sample
改成.env
- 替换掉里面的PORT变量即可
This application is completed using node.js+html+Jquery+bootstrap, needs node environment support, the lottery function is base on the user list of a specific Bilibili dynamic, the program is going the get the list and select a winner by random.
- Install nodejs environment
- Open the command line in the project folder and run
npm install
to install and download dependent files - Run
npm start
to start the project - Use the browser to access http://localhost:3000/ .
- Rename
.env.sample
to.env
- Just replace the variables inside