Giter VIP home page Giter VIP logo

admin.xiaoduyu.com's Introduction

小度鱼(后台管理)

介绍

小度鱼,是基于 React + GraphQL + NodeJS + Express + MongoDB 开发的一个社区系统
线上站点:https://www.xiaoduyu.com
小度鱼

特点

  • 页面极度简洁
  • 单页面应用,前后端分离
  • 使用 React 服务器端渲染,首屏服务端渲染,且完美支持SEO
  • 按页面将代码分片,然后按需加载
  • 功能丰富,支持富文本编辑器,头像上传与裁剪,支持邮箱、微博、QQ注册登录,等等

本地部署

不保证 Windows 系统的兼容性

1. 安装 Node.js 大于8的版本 [必须]  
2. git clone [email protected]:54sword/admin.xiaoduyu.com.git  
3. cd admin.xiaoduyu.com
4. npm install  
5. 修改 config/index.js 中的api配置  
6. npm run dev  
7. 访问 http://localhost:5000  
8. 完成

开发环境

npm run dev

生产环境测试

npm run pro

部署到服务器

1、打包项目

npm run dist 

2、除了node_modules,将整个项目上传到服务器,然后执行如下命令,安装依赖包

npm install

3、启动服务

NODE_ENV=production __NODE__=true BABEL_ENV=server node server

4、账号登陆
1)在前端注册一个账号,必须通过邮箱或手机号注册
2)到mongodb数据中,修改该账户的role属性为100,即表示该账号为管理员
3)通过账号(邮箱、手机号)+ 密码登陆

小度鱼相关开源项目

开源协议

MIT

admin.xiaoduyu.com's People

Contributors

54sword avatar

Watchers

 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.