Giter VIP home page Giter VIP logo

programmer-go's Introduction

程序员向前冲

面向社招程序员的一站式网站-后端

前端位于 programmer-go-front

如何使用

如果只是想在本地启动本程序便于前端调试或者体验api的话,可以继续;如果是需要参与开发,请跳到 如何贡献

先安装 dockerdocker-composedocker 的安装可以参考 菜鸟教程docker-composemacwin上如果安装了桌面版本已自带了

安装完毕后直接在该项目的根目录运行

docker-compose up -d

运行成功后,插入一跳数据

docker exec -it pg-redis redis-cli -p 16379 -a "1234567890"  HMSET "c7cec5" "openid" "aROD9s357bclJK9eLwXrGfMsuvZm"

这样子前端同学就可以在本地调试了!可以把 接口文档 导入到 postman 请求本地接口就可以了。

注意配置两个环境变量

  • pg-backend 对应 http://localhost
  • token 对应调用 login 接口后获得的 access_token 的值

如何贡献

非常感谢您的贡献,开发环境与运行方式、代码目录结构请参考 dev.md

建议安装git commit提交规范辅助工具

# git 提交辅助工具 可选 参考 https://coding3min.com/1617.html
npm install -g conventional-changelog
npm install -g conventional-changelog-cli

使用 git cz 进行提交

Authors&Contributors

感谢技术大拿们的倾力贡献!

Support

For support, please create issue

License

可闭源,请注明出处!

GNU General Public License v3.0

programmer-go's People

Contributors

guowei-gong avatar kurumii avatar minibear2333 avatar sakura-echos avatar wss404 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

programmer-go's Issues

方案:积分功能设计、积分商城

设计用户操作自动增减积分,积分功能设计方案。
可以提供积分商城设计方案。
可在此提交评论关于您的想法,或者看到的技术手册链接

权限系统设计

可能要关联用户积分访问某些功能,目前在策划解决,v1版本不上线

目前只需要 #13 做了,管理员自己能操作就可以,后期可能还会和积分、角色关联

点赞、踩、浏览量增加功能

要思考下面试题更新接口是不是可以弄可选参数更新,如果弄不了就新增一个接口

考虑点赞、踩、浏览量变化,要不要弄到redis里,请先在此讨论方案

需要把这里更改为 不能更新created_time、作者的接口,可能需要更改mongo的接口;参数可选传入(需要重新定义req model)

// TODO 更改为 不能更新created_time、作者的接口,可能需要更改mongo的接口;参数可选传入(需要重新定义req model)

需要把这里更改为 不能更新created_time、作者的接口,可能需要更改mongo的接口;参数可选传入(需要重新定义req model)

这里我写的把created_time也更新了,这是不合理的。

作为面试题而言,不应该更新作者。

应该拆分为1个接口和1个logic功能

接口:更新接口

  • 可选参数,更新文章内容、摘要、标签、和 _num的字段、good、bad 这些字段,自动更新时间,不能更新created_time、作者
  • 但不允许传入热度,热度暂留,应该由某个公式计算得到

逻辑功能:为面试题追加评论id

在面试题目里的comments字段,增加评论id,传入评论id就可以,这个逻辑会被评论时后端api逻辑代码调用到

用户中心 更新 读取接口

不需要创建和删除用户

需要注意用户model中的很多字段,比如粉丝关联、关注、收藏这是另外的接口,这里不用写

更新个人信息

image

更新个人网站和技能

image

获取当前用户功能

不要再使用前端输入用户id和用户名的方式,在用户登陆后自动把jwt和用户信息映射放到redis里,通过redis获取

消息中心CURD

消息中心需要有已读功能,根据特殊的场景塞到消息中心的表中

注意分类

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.