# lottery_server_youthcamp_bytedance **Repository Path**: ufec/lottery_server_youthcamp_bytedance ## Basic Information - **Project Name**: lottery_server_youthcamp_bytedance - **Description**: 字节跳动青训营抽奖案例 服务端 - **Primary Language**: NodeJS - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-01 - **Last Updated**: 2022-01-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 字节青训营大作业-抽奖案例 服务端 字节青训营大作业-抽奖案例 服务端 ## QuickStart see [egg docs][egg] for more detail. ### Development ```bash $ npm i $ npm run dev $ open http://localhost:7001/ ``` ### Deploy ```bash $ npm start $ npm stop ``` ### npm scripts - Use `npm run lint` to check code style. - Use `npm test` to run unit test. - Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail. [egg]: https://eggjs.org ### config ```bash code ./config/lottery.json ``` - lottery 配置奖品信息 - point_cost 配置每次抽奖消耗钻石数 - diamond 配置初始钻石数 - prisze 配置抽奖概率