Single-page applications using Vue, Elementui, Vuex, Express, MongoDB

Source: Internet
Author: User
Tags mongodb server git clone

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.