A blog system based on node, express, mongoose, node_acl, vue
Before installing, you should have a mongodb availiable.
Using cnpm:
cnpm install
- Build for dist (client and server)
npm run build
- Start server with pm2
npm start
-
Visit localhost:3000 for blog
-
Visit localhost:3000/login for admin
- Start server
npm start
- Start webpack-dev-server
npm run dev
If dist has already been built and you want to deploy this project on another host, you can do like this:
cnpm install --production
then copy dist folder to 'leaf-blog/'
npm start