LI WENHAO

Update README.md

Showing 1 changed file with 18 additions and 18 deletions
......@@ -57,52 +57,52 @@
#### Environmental preparation
node.js Environment configuration installation
`node.js` Environment configuration installation
vue、vue-cli Environment configuration installation
`vue``vue-cli` Environment configuration installation
mongodb、mongodb Compass Environment configuration installation
`mongodb``mongodb Compass` Environment configuration installation
#### Operating instructions
> Vue project configuration start
> `Vue` project configuration start
```shell
-- yarn Instruction to install
-- `yarn` Instruction to install
npm install -g yarn
npm install yarn --save
-- Vue project dependency introduction
-- `Vue` project dependency introduction
npm install
cnpm install
-- Extension component dependency introduction
vue-lazyload Plugin:yarn add vue-lazyload -S
vue-color plugin:yarn add vue-color -S
style-resources-loader plugin:yarn add style-resources-loader -D
mdrkdown syntax support related plugins:marked、highlightJs yarn add marked highlightJs -S
`vue-lazyload` Plugin:yarn add vue-lazyload -S
`vue-color` plugin:yarn add vue-color -S
`style-resources-loader` plugin:yarn add style-resources-loader -D
`mdrkdown` syntax support related plugins:marked、highlightJs yarn add marked highlightJs -S
```
>mongodb configuration:
>`mongodb` configuration:
Mongodb configuration information correspondence:`code/server/config.js`File configuration database information
`Mongodb` configuration information correspondence:`code/server/config.js`File configuration database information
```powershell
// Enter the ‘mongodb’ installation directory and execute the command to start the ‘mongo’ service
// Enter the `mongodb` installation directory and execute the command to start the ‘mongo’ service
> mongo
// Display database list
> show dbs
// Create a new ‘rfBlog’ database
// Create a new `rfBlog` database
> use rfBlog
// Create an rf user in the ‘rfBlog’ database with a password of 123456
// Create an rf user in the `rfBlog` database with a password of 123456
> db.createUser({user:"rf",pwd:"123456",roles:[{role:"readWrite",db:'rfBlog'}]})
// Show who the library has users
......@@ -117,16 +117,16 @@ mdrkdown syntax support related plugins:marked、highlightJs yarn add marked
> Initialize system user information
```powershell
// Start ‘mongo’ service
// Start `mongo` service
> mongo
// Display database list
> show dbs
// Access to the ‘wallBlog’ database
// Access to the `wallBlog` database
> use rfBlog
// Insert a piece of data into the ‘users’ collection of the library, account number: admin password: 123456
// Insert a piece of data into the `users` collection of the library, account number: admin password: 123456
> db.users.insert({
"pwd" : "e10adc3949ba59abbe56e057f20f883e",
"username" : "admin",
......