A single-page application based on Vue, Vuex, Express, MongoDB, including the front and back end, the frontend is mainly using Vue, the backend is node's express, the database is used MongoDB
1. Download and use
git clone https://github.com/rainbowchenhong/vue-config-demo.gitcd vue-config-democd node -/ / Install back-end dependent package CDconfig-// install front-end dependency package
2. Start the background
Backstage here is mainly Express4+mongodb, the code is mainly under the Node-server folder, the address of the linked database in Db/db.js modification can be, you need to start MongoDB server, and then execute this code, or will error
NPM Run Server (normal startup mode) accesses http: // localhost:8088
So the server is ready to start.
3. Front-end operation
npm Run Dev (normal compilation mode) NPM Run build (release production version, extract common code, detach CSS file) to access http: // localhost:8080
4. Effect display
5.GitHub Address
Interested friends can go up to GitHub to see the source code
git clone https://github.com/rainbowchenhong/vue-config-demo.git
Single-page applications using Vue, Elementui, Vuex, Express, MongoDB