# centralServer **Repository Path**: lovechl/centralServer ## Basic Information - **Project Name**: centralServer - **Description**: No description available - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-05-09 - **Last Updated**: 2021-09-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Cloud Robot Platform this platfrom use to programing and control AI education robot, implemented by node.js and scratch blocks. ### Version 0.0.1 ### Usage ### Installation step 1. start mongod without authorization: ```sh $ ./mongod --dbpath PATH_OF_DATABASE ``` step 2. open new terminal tab, create new user follow commands below: ```sh $ ./mongo > use cros > db.createUser({user:'cros',pwd:'YOU_PASSWORD',roles:[{ role: "userAdminAnyDatabase", db: "admin" },{ role: "readWrite", db: "cros" }]}) ``` step 3. back to the tab where running mongd, then use ctrl+C end mongod, restart it by command: ```sh $ ./mongod --dbpath PATH_OF_DATABASE -auth ``` step 4. set mongodb auth in express server app.js file: ```javascript mongoose.connect('mongodb://cros:YOU_PASSWORD@localhost/cros'); ``` step 5. if you use cloud server, you must be sure ports 22, 80, 443, 8888 are enable, because usually they are disable. then run command: ```sh $ npm install $ npm start ``` good luck!