{"id":13487689,"url":"https://github.com/seasonstar/egg-24time","last_synced_at":"2025-04-05T23:10:56.224Z","repository":{"id":38325847,"uuid":"88615221","full_name":"seasonstar/egg-24time","owner":"seasonstar","description":"A Twitter-like news and social server for Egg. 微信小程序社区全栈解决方案","archived":false,"fork":false,"pushed_at":"2018-05-05T13:33:15.000Z","size":62,"stargazers_count":523,"open_issues_count":10,"forks_count":80,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-29T22:08:52.690Z","etag":null,"topics":["egg","egg-boilerplate","egg-plugin","eggjs","sequelize","weapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seasonstar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-18T11:01:18.000Z","updated_at":"2025-03-27T16:01:09.000Z","dependencies_parsed_at":"2022-07-13T04:51:45.142Z","dependency_job_id":null,"html_url":"https://github.com/seasonstar/egg-24time","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seasonstar%2Fegg-24time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seasonstar%2Fegg-24time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seasonstar%2Fegg-24time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seasonstar%2Fegg-24time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seasonstar","download_url":"https://codeload.github.com/seasonstar/egg-24time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411235,"owners_count":20934653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["egg","egg-boilerplate","egg-plugin","eggjs","sequelize","weapp"],"created_at":"2024-07-31T18:01:02.204Z","updated_at":"2025-04-05T23:10:56.201Z","avatar_url":"https://github.com/seasonstar.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","应用","Applications"],"sub_categories":["插件"],"readme":"# egg-24time\n\n微信小程序社区功能全栈解决方案，配合以下项目使用:\n\n\u003e [egg-24time](https://github.com/seasonstar/egg-24time)\n\n后端使用Egg，Mysql，Redis，基于Nodejs开发，全套代码使用ES6编写\n\n\u003e [weapp-24time](https://github.com/seasonstar/weapp-24time)\n\n微信小程序端\n\n\u003e [egg-weapp-sdk](https://github.com/seasonstar/egg-weapp-sdk)\n\negg的微信小程序的用户会话管理插件，客户端需配合腾讯云出品的[qcloud-weapp-client-sdk](https://github.com/tencentyun/weapp-client-sdk)使用，Redis保存会话信息\n\n--------------------\n\n本示例包含：\n\n1. 微信小程序登录示例\n2. 进行带会话的网络请求示例\n2. 基于腾讯云COS上传图片或文件的示例\n3. 发送帖子，点赞，举报，删除帖子示例\n\n\n## QuickStart\n\n### Development\n\n```shell\ngit clone https://github.com/seasonstar/egg-24time.git\ncd egg-24time\n```\n\nConfig Redis and Mysql on [config/config.default.js](config/config.default.js)\n\n```javascript\n  config.redis = {\n    client: {\n      host: '127.0.0.1',\n      port: '6379',\n      password: '',\n      db: '0',\n    },\n  };\n\n  config.sequelize = {\n    dialect: 'mysql', // support: mysql, mariadb, postgres, mssql\n    database: 'tftime',\n    host: 'localhost',\n    port: '3306',\n    username: 'root',\n    password: '',\n  };\n\n  config.weappSDK = {\n    appId: '', // your weapp appId\n    appSecret: '', // weapp appSecret\n  };\n\n  // Qcloud Cloud Object Storage\n  config.cos = {\n    secretId: '',\n    secretKey: '',\n    appId: '',\n    bucket: '',\n    folder: '',\n  };\n```\n\nImport test data into Mysql\n\n```shell\nmysql -u root -p  \u003c db.sql\n```\n\n```shell\n$ npm install\n$ npm run dev\n$ open http://localhost:7001/\n```\n\n### Deploy\n\nUse `EGG_SERVER_ENV=prod` to enable prod mode\n\n```shell\n$ EGG_SERVER_ENV=prod npm start\n```\n\nor `EGG_SERVER_ENV=prod nohup node index.js \u003e stdout.log 2\u003e stderr.log \u0026` run quietly\n\n### npm scripts\n\n- Use `npm run autod` to auto detect dependencies upgrade\n- Use `npm run lint` to check code style\n- Use `npm test` to run unit test\n\n\n## Credits \u0026\u0026 Inspiration\n\n[cos-auth](https://github.com/tencentyun/cos-auth)\n\n[wafer-node-server-sdk](https://github.com/tencentyun/wafer-node-server-sdk)\n\n## LICENSE\n\n[MIT](LICENSE)\n\nPlease Open Issues if you have troubles.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseasonstar%2Fegg-24time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseasonstar%2Fegg-24time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseasonstar%2Fegg-24time/lists"}