Giter VIP home page Giter VIP logo

toutiao's Introduction

模仿今日头条

主要有以下几个模块:

用户模块:

1.用户注册时检验用户名合法性,密码通过slat加密和MD5加密保证安全性
2.用户登录后下发token,设置过期时间,再次登录时通过拦截器判断token是否有效用户是否已经登录,实现用户权限管理
3.用户登出时清除token

资讯模块:

1.用户可以发布资讯,资讯中可以上传图片
2.图片实现两种方式存储,本地和七牛云。
3.使用CDN存储可以减少服务器压力,同时CDN还提供例如实时缩图,鉴别黄图等功能。
减少本地工作量的同时加快了用户访问速度,带来了更好的体验

评论和消息模块:

1.用户可以对每条资讯做评论
2.被评论的资讯的发出用户会收到站内信,显示评论内容

点赞模块:

1.redis实现点赞功能
2.动态显示是否已经点过赞,动态取消赞,无需刷新

异步的邮件模块:

1.实现类似生产者消费者的异步模式,将一些不迫切的功能转为异步执行,例如有人点赞发送站内信,登录发送邮件
2.通过异步队列执行任务,降低主程序执行压力

toutiao's People

Contributors

snowwave1995 avatar

Stargazers

Panson avatar Luckyhui avatar 这个好玩吗 avatar  avatar

Watchers

James Cloos 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.