Code Monkey home page Code Monkey logo

react-cms's Introduction

基于React + React-router + webpack 的CMS.


第一个react项目,由于项目比较小,没有使用redux。由于设计的功能点太多。所以留了部分坑,时间受限没有全部实现。部分代码比较粗糙

演示地址: demo

u/p : demo

技术点


前端:

  • React -- 组件和逻辑
  • React-dom -- 组件渲染
  • React-router -- 路由
  • webpack -- 打包构建
  • babel -- 编译ES6
  • jsx -- render代码编写
  • sass -- css预编译

后端:

  • NodeJs && express -- 服务、路由、API
  • mongodb && mongoose -- 数据库
  • passport -- 对密码加密、salt 及校验

部署

  • Apache -- 通过二级域名的方式解析系统
  • pm2 -- nodeJS 服务部署管理工具

功能点


  • 用户注册及登陆
  • 博文的增删改查
  • 登陆后获取用户信息用以发布和修改文章
  • 反向代理(开发时使用webpac 部署使用Apache)和rewrite

部署


开发部署:

建议使用cnpm 进行 cpm包的安装,速度要快很多 注:以下步骤默认你已经安装 NodeJsmongodb

  1. git clone https://github.com/me-jser/react-cms.git
  2. cnpm install 安装前端依赖
  3. cd server && cnpm install 安装服务端依赖
  4. 当前你应在 cms/server 目录 运行 node app.js 启动API服务
  5. cd .. && webpack-dev-server --hot --inline 启动webpack服务

TODO


  1. 预览和保存草稿
  2. lists filter
  3. dash animation
  4. tags/catalog animation
  5. dynamic tags

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.