Coder Social home page Coder Social logo

webproject's Introduction

一个丑陋的作业提交系统

环境

Ubuntu 18.04 安装grpc环境

使用到技术

go web编程(http),使用gorm工具控制MySQL,使用redis-go控制redis,使用grpc通信

使用操作

分两个使用主体: 学生和TA

学生只能根据一个uid和自己的学号提交对应作业(学号只是简单判断是否8位数字而已,没有其他用途),见http://127.0.0.1:8080/upload

TA操作包括注册,登录,发布作业,收集作业,分别对应网页/registerPage, /loginPage, /publishHomeworkPage, /getHomeworkPage, 功能是注册就是注册,登录就是登录,但是它会保存cookie,有了cookie之后发布作业和收集作业就不需要再输入用户名和密码了,发布作业会返回一个uid作为作业的标识符,ta通过提供这个标识符给学生们提交作业,收集作业需要这个标识符,并返回这次作业的完整压缩包。

总体来说可以做得更完好,比如ui更友好,为ta提供提交学生名单,加一个ta在线打分并公布成绩。。。但所做的这些已经体现所学了,所以没再继续

webproject's People

Contributors

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