seasonstar / Egg 24time
Licence: mit
A Twitter-like news and social server for Egg. 微信小程序社区全栈解决方案
Stars: ✭ 493
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Egg 24time
Egg Authz
egg-authz is an authorization middleware for Egg.js based on Casbin
Stars: ✭ 50 (-89.86%)
Mutual labels: egg, eggjs, egg-plugin
Nideadmin
【未完成】NideAdmin - 基于 Vue.js + Egg.js 的微信小程序后台框架
Stars: ✭ 35 (-92.9%)
Mutual labels: egg, eggjs, weapp
egg-parameters
Merge all parameters (ctx.params, ctx.request.query, ctx.request.body) into ctx.params like Rails application.
Stars: ✭ 24 (-95.13%)
Mutual labels: egg, egg-plugin, eggjs
Egg Router Plus
The missing router feature for eggjs
Stars: ✭ 117 (-76.27%)
Mutual labels: egg, eggjs, egg-plugin
Egg Cancan
cancancan like authorization plugin for Egg.js
Stars: ✭ 47 (-90.47%)
Mutual labels: egg, eggjs, egg-plugin
Cool Admin Api
cool-admin-api 是基于egg.js、typeorm、jwt等封装的api开发脚手架、快速开发api接口
Stars: ✭ 188 (-61.87%)
Mutual labels: egg, eggjs, egg-plugin
Egg Oauth2 Server
🌟 OAuth2 server plugin for egg.js based on node-oauth2-server
Stars: ✭ 174 (-64.71%)
Mutual labels: egg, eggjs, egg-plugin
egg-rbac
Role Based Access Control for eggjs
Stars: ✭ 32 (-93.51%)
Mutual labels: egg, egg-plugin, eggjs
egg-nuxt-blog
Nuxt.js(web端) + Egg.js(api 服务) + Vue.js(管理后台)+ ElementUI(通用组件库)服务器渲染(SSR)搭建的个人博客系统
Stars: ✭ 16 (-96.75%)
Mutual labels: egg, eggjs
egg-y-validator
☯️ Egg Magic Validator (Egg 魔法验证工具)
Stars: ✭ 30 (-93.91%)
Mutual labels: egg, egg-plugin
egg-view-vue-ssr
Egg Vue Server Side Render (SSR) Plugin
Stars: ✭ 90 (-81.74%)
Mutual labels: egg, egg-plugin
egg-24time
微信小程序社区功能全栈解决方案,配合以下项目使用:
后端使用Egg,Mysql,Redis,基于Nodejs开发,全套代码使用ES6编写
微信小程序端
egg的微信小程序的用户会话管理插件,客户端需配合腾讯云出品的qcloud-weapp-client-sdk使用,Redis保存会话信息
本示例包含:
- 微信小程序登录示例
- 进行带会话的网络请求示例
- 基于腾讯云COS上传图片或文件的示例
- 发送帖子,点赞,举报,删除帖子示例
QuickStart
Development
git clone https://github.com/seasonstar/egg-24time.git
cd egg-24time
Config Redis and Mysql on config/config.default.js
config.redis = {
client: {
host: '127.0.0.1',
port: '6379',
password: '',
db: '0',
},
};
config.sequelize = {
dialect: 'mysql', // support: mysql, mariadb, postgres, mssql
database: 'tftime',
host: 'localhost',
port: '3306',
username: 'root',
password: '',
};
config.weappSDK = {
appId: '', // your weapp appId
appSecret: '', // weapp appSecret
};
// Qcloud Cloud Object Storage
config.cos = {
secretId: '',
secretKey: '',
appId: '',
bucket: '',
folder: '',
};
Import test data into Mysql
mysql -u root -p < db.sql
$ npm install
$ npm run dev
$ open http://localhost:7001/
Deploy
Use EGG_SERVER_ENV=prod
to enable prod mode
$ EGG_SERVER_ENV=prod npm start
or EGG_SERVER_ENV=prod nohup node index.js > stdout.log 2> stderr.log &
run quietly
npm scripts
- Use
npm run autod
to auto detect dependencies upgrade - Use
npm run lint
to check code style - Use
npm test
to run unit test
Credits && Inspiration
LICENSE
Please Open Issues if you have troubles.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].