Giter Club home page Giter Club logo

testwebserver's Introduction

TestWebServer

2018.5.10更新。

架构:Nginx + Gunicorn + Django(MySQL),前端使用React + Axios,在Nanopi-Neo上测试。

以后会使用Nanopi2 fire做单独的Nginx 负载均衡服务器

进度安排:

  • 搭建环境,完成MySQL、Nginx配置

  • Django 后端简单搭建

  • 完全的前后端分离

  • 实现前端发送用户名与密码到后端(axios post)

  • 实现后端将用户验证数据返回到前端

  • Toast适配 使用Span标签来进行警告与提示

  • 考虑传输的安全问题(CSRF Solved)

  • 实现登陆后的跳转(使用React-Router)

  • 使用Redux来实现登陆后鉴权信息保存(未鉴权的用户将会被redirect到home)

  • 实现多页面跳转

  • 实现前端注册与登录功能

  • 实现较复杂后端逻辑

  • 注册功能进一步完善

  • Nginx未发现静态资源,向后端Django发起请求获得资源

  • 使用cookies来实现不登录即可访问信息(optional)

  • 完善HomeView,实现一些其他功能

  • WebPack学习&精简

  • 已知问题:

    1. 实验服务器Nginx 用户为 root(不为默认的www-data),MySQL的django用户权限过大(update这个权限应该进一步限制在固定的表内,而不为全部的库权限)。
    2. SecretKey没有特别好的解决方法。

testwebserver's People

Contributors

769484623 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.