My luminous Nuxt.js project
1、安装Redis到C盘根目录 2、开启redis-server.exe
1、安装MongoDB,开启redis-server.exe
2、在data目录下新建db文件夹
3、在安装目录下的\bin文件夹中打开命令行,键入 **安装地址**\bin\mongod --dbpath **安装地址**\data\db
回车
在数据源中打开命令行:mongoimport -d dbs(数据库) -c test(数据结合) pois.dat(数据源)
例如:mongoimport -d meituan -c areas areas.dat
Redis和MongoDB以及相应依赖安装完毕后,即可npm run dev 或 yarn run dev
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn run dev
# build for production and launch server
$ yarn run build
$ yarn start
# generate static project
$ yarn run generate
For detailed explanation on how things work, checkout Nuxt.js docs.