Giter Club home page Giter Club logo

node-express-server's Introduction

express-node-server

A basic express-node-server update architecture

2016.12.11号更新说明
1、注释了mongodb数据库的连接代码,因为考虑到有很多人可能还没有安装mongodb或者是采用其他数据库连接方案

注意:下载本项目的同时,请下载react-redux-webpack前端项目。

一个基于express实现的node服务器,跟我在git上开源的另外一个前端版本做前后端交互,本项目实现了服务器端返回index.html模板, 解决了跨域访问接口和cookie不能跨域存储的问题。

安装

克隆开源代码到本地

git clone https://github.com/hyy1115/node-express-server.git  

安装依赖包

npm install

运行服务器,开启9009端口

npm start

前端代码访问首页,请在浏览器输入服务器地址,原理就是由服务器端返回html。

http://localhost:9009

node-express-server's People

Contributors

hyy1115 avatar

Watchers

James Cloos 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.