# skynet_practice **Repository Path**: mengtest/skynet_practice ## Basic Information - **Project Name**: skynet_practice - **Description**: skynet入门实战 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: skynet - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2024-03-27 - **Last Updated**: 2024-03-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Skynet 入门实战 项目讲解同步博客:[【Skynet 入门实战练习】](https://blog.csdn.net/qq_52678569/article/details/134528283) ## 构建 > 前置要求:[数据库构建](#数据库) - `make build` - `make server` ## 测试 - `make client` ## 数据库 构建: 1. `use admin` 2. `db.createUser({user:'root', pwd:'root',roles:['root']})` 3. `db.auth('root', 'root')` 4. `use game` 5. `db.createUser({user: 'cauchy', pwd: 'root', roles: [{ role: 'readWrite', db: 'game'}]})` 6. `use cache` 7. `db.createUser({user: 'cauchy', pwd: 'root', roles: [{ role: 'readWrite', db: 'cache'}]})`