Giter Club home page Giter Club logo

cloudnews's Introduction

vue全家桶+node.js+socket打造新闻社区

本文包括新闻页面,智能聊天界面,和登录注册功能,并区分是否登录和登录后状态进入聊天室。

技术栈

前端:html、css、scss、less、ES6、webpack、socket.io、vue-cli、vue2、vuex、vue-router、vue-resource

后端:Node、Mysql

项目运行方法

注:前端使用ES6的很多新特性,所以NodeJs 必须是6.0稳定版本,我使用的版本是8.9.0

(1)git clone https://github.com/moveondo/CloudNews.git

(2)npm install

(3)npm run dev

(4)安装mysql数据库,新建数据库tour,然后导入全部数据(此项目根目录下的tour.sql)

(5)浏览器访问:localhost:8088

(6)数据库tour_user表中的用户默认密码均为123456

说明

如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢! ^_^

或者您可以 "follow" 一下,我会不断开源更多的有趣的项目

开发环境 WIN7、Chrome 61.0、nodejs 8.9.0、Mysql5.7.14

目标功能

  • 登录、注册(100%)
  • 云新闻首页(100%)
  • 云新闻列表页展示(100%)
  • 智能聊天室(100%)
  • 区分是否登录进入聊天室

注:此项目纯属个人爱好及代码测试。

项目截图

全局页面:

2

如果没有登录状态:

7

有登录状态时:

4 5

注册登录页面后端MySQL:

2 3

注意事项

node版本要求较高 需要使用新版本的node

升级node(MAC版本),windows直接下载覆盖原有版本即可

## 安装node的一个版本管理器n
npm install n -g  

## 安装最新版本的node
n latest  

## 切换到某个固定的版本
n ^8.9.0  

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8088
npm run dev

# build for production with minification
npm run build

cloudnews's People

Contributors

moveondo avatar

Watchers

 avatar  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.