GithubHelp home page GithubHelp logo

get-offer's Introduction

Get Offer

一个使用 Polymer,Express 与 MongoDB 开发的匿名实习交流论坛。

运行

  1. 安装 Node.js 与 MongoDB,并做好相应的配置
  2. 安装依赖
npm install -g bower # 如果没有安装过 bower
npm install
bower install
  1. 运行 MongoDB 并配置 db.js。默认数据库为 mongodb://localhost:27017/getoffer

  2. 运行服务器,可直接运行:

node bin/www

或使用 pm2 守护:

npm install -g pm2  # 如果没有安装过 pm2
pm2 start bin/www

默认 3000 端口

开发

  1. 安装 supervisor,gulp
npm install -g supervisor
npm install -g gulp
  1. 如需要开启前端开发环境(监视前端代码并在修改时重启,使用 livereload):
gulp serve

模拟生产环境:

gulp serve:dist
  1. 如需要开启后端开发环境(监视后端代码并在修改时重启):
npm start

测试

运行:

npm test

目录结构

.
│
├─ app (前端代码)
├─ bin (运行入口)
├─ controllers (Controller) 
├─ doc (文档)  
├─ middlewares (中间件)
├─ models (Model)
├─ routes (路由)
├─ db.js  (数据库配置文件)
├─ fixture.js (测试数据导入)
└─ server.js (服务器模块)

get-offer's People

Contributors

bayronp avatar fanqiaowen avatar gemini5516 avatar joyeecheung avatar zhongzeming 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.