GithubHelp home page GithubHelp logo

nodenews's Introduction

nodejs练手小项目


该项目为极客学院前端就业班作业,即实现百度新闻手机客户端后,用nodeJS完成服务端。

使用技术


  1. 前端
  • requirejs
  • jade
  1. 后端
  • express
  • session 来实现会话持久
  1. 工程化
  • bower 处理js依赖
  • grunt 自动化

项目结构


  1. app
  • controllers 处理业务层
  • view 视图层
  1. config
  • database 数据库连接管理
  • routes 路由
  1. public

项目开启


  1. 将phpnews.sql导入mysql数据库
  2. 在bash中输入npm initbower init加载modules
  3. 在bash中在该项目目录下使用grunt启动项目

项目优化


  1. 使用gulp来替代grunt
  2. 使用sass/less来书写css,使css可控和更易维护
  3. 前端工业化,将css/js/img压缩

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.