Giter VIP home page Giter VIP logo

community's Introduction

社区

说明

基于thinkphp5.1+uniapp+mysql5.7 开发的社区程序,主要兼容H5版本。

图片压缩使用的七牛云存储。

后台管理系统并未完善,后期有时间完善或自行完善。

主要功能:

  1. 发布动态(文字内容,图片或视频,地点,类别)

  2. 首页展示

  3. 点赞 收藏 评论 二级评论 点赞

  4. 关注 删除 举报

  5. 查看用户资料和用户的发布

  6. 查看我的发布

  7. 查看我的收藏

  8. 设置

  9. 修改个人资料

  10. 登录账号 注册账号

  11. 搜索动态

  12. 暂时想到这么多

演示

示例地址:http://py.q05.cc/app/#/

image-20201201205233426image-20201201214446729image-20201201214457935

技术

后端程序采用MVC的设计模式

image-20201201205150087

前端基于uniapp并使用uview-ui框架开发

搭建

导入数据库

/community/community.sql

修改后端代码

/config/database.php

    'hostname'        => '',
    // 数据库名
    'database'        => '',
    // 用户名
    'username'        => '',
    // 密码
    'password'        => '',
    // 端口
    'hostport'        => '',

修改七牛云配置

/config/app.php

'ACCESSKEY' => '',//你的accessKey
    'SECRETKEY' => '',//你的secretKey
    'BUCKET' => '',//上传的空间
    'DOMAIN'=>'',//空间绑定的域名

如何部署服务器thinkphp项目自行百度吧

修改前端代码

/config/config.js

apiBaseUrl:"http://py.q05.cc/api/",

修改成自己的域名

打开HbuilderX工具(没有自行百度下载),导入前端源码目录,顶部导航选择发行-网站

image-20201201212019512

发行完成后将该目录文件放到后端thinkphp项目下的public/app文件夹里

然后就能看到部署成功了

赞赏

开源不易,给个赞赏支持一下吧!

image-20201201212427110

image-20201201212439205

community's People

Contributors

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