Coder Social home page Coder Social logo

vikibeta / mmf-blog-vue2-ssr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lincenying/mmf-blog-vue2-ssr

0.0 2.0 0.0 12.66 MB

mmf-blog-vue2 ssr(The service side rendering)

Home Page: https://www.mmxiaowu.com

JavaScript 70.74% Vue 9.10% CSS 19.84% HTML 0.32%

mmf-blog-vue2-ssr's Introduction

mmf-blog vuejs 2.0 SSR v2 中文说明

demo: http://www.mmxiaowu.com

notice

A blog built with Vue 2.0, vue-router & vuex, with server-side rendering

The main technical stack: express, mongoose, vue2, vue2-router, vuex, webpack, babel, eslint

The directory structure

├─build // Webpack related configuration file
│
├─dist  // Webpack generated document storage directory
│  │
│  ├─server
│  │
│  └─static
│      ├─css
│      │
│      ├─images
│      │
│      ├─img
│      │
│      └─js
│
├─server    // The server directory
│  │
│  ├─api    // API related processing files
│  │
│  ├─config // API configuration file
│  │
│  ├─models // mongoose model
│  │
│  ├─routes // The routing file
│  │
│  └─utils  // tools
│
├─src           // The client program directory
│  │
│  ├─api        // API configuration file
│  │
│  ├─assets     // Static file folder
│  │  ├─css
│  │  │
│  │  └─images
│  │
│  ├─components // Component folder
│  │
│  ├─filters    // The filter
│  │
│  ├─pages      // Routing component
│  │
│  ├─polyfill   // polyfill
│  │
│  ├─router     // The routing configuration folder
│  │
│  ├─store      // Vuex related folder
│  │  │
│  │  └─modules // Vuex modules folder
│  │
│  ├─template   // The initial template
│  │
│  └─utils      // tools
│
└─static
    ├─editor.md
    │
    ├─images


Other versions

react(spa): https://github.com/lincenying/mmf-blog-react-v2

vue2(spa): https://github.com/lincenying/mmf-blog-vue2

vue2(ssr): https://github.com/lincenying/mmf-blog-vue2-ssr

vue2(pwa ssr): https://github.com/lincenying/mmf-blog-vue2-pwa-ssr


The configuration file: src/api/config-client.js (The browser)
api: Address of the API (For example: /api/)
The configuration file: src/api/config-server.js (The server side)
api: Address of the API (For example: http://localhost:8080)
port: Start the port

Start:

install NodeJS: https://nodejs.org/zh-cn/

install Mongodb: https://www.mongodb.com/download-center#community

# Install dependencies
$ yarn  #or  npm install
# Note: do not install with CNPM dependency

# Develop
$ npm run dev

# Product
$ npm run build

# Start (need to generate a static file)
$ npm run start

Home Site http://localhost:8080

Login http://localhost:8080/backend

Add Administrator http://localhost:8080/api/backend

After the success of the administrator to add, will automatically generate the admin.lock file locking, if you need to continue to add, please just delete the file

notice:

Because babelrc configuration

"presets": [
    ["env", {
        "targets": {
            "chrome": 52
        }
    }]
]

So, in the development environment, please use chrome52 + open, if you need other low browser version, please modify the root directory of the .Babelrc file

LICENSE

MIT

mmf-blog-vue2-ssr's People

Contributors

lincenying avatar

Watchers

James Cloos avatar KingxBeta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.