All Projects → xuexiangjys → TemplateAndServer

xuexiangjys / TemplateAndServer

Licence: Apache-2.0 license
简化版的Android服务端模板,用于接口模拟测试。

Programming Languages

java
68154 projects - #9 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to TemplateAndServer

serverless-plugin-epsagon
Epsagon's plugin for Serverless Framework ⚡️
Stars: ✭ 53 (+32.5%)
Mutual labels:  serverless-framework
serverless-media-portal
Ready-to-deploy webapp for sharing home videos: a React frontend with a AWS Lambda backend using FFmpeg to process videos. Created using Serverless Framework.
Stars: ✭ 90 (+125%)
Mutual labels:  serverless-framework
amazon-ivs-chime-web-demo
A demo web application intended as an educational tool for demonstrating how to load and play Amazon IVS streams alongside the Amazon Chime SDK.
Stars: ✭ 35 (-12.5%)
Mutual labels:  serverless-framework
tencent-tensorflow-scf
A template project for serverless functions for Tensorflow inference on Tencent Cloud.
Stars: ✭ 38 (-5%)
Mutual labels:  serverless-framework
bingo
一个基于golang的serveless 的低代码平台。可以快速的构建基于微服务和数据库的管理类应用。内置了权限、流程、表单引擎等基础功能。
Stars: ✭ 52 (+30%)
Mutual labels:  serverless-framework
serverless-side-rendering-vue-nuxt
Sample project for using Nuxt.js to create a server-side rendered Vue.js app on AWS Lambda and AWS API Gateway.
Stars: ✭ 109 (+172.5%)
Mutual labels:  serverless-framework
souls
SOULs 🔥 Build Serverless Apps faster like Rails. Powered by Ruby GraphQL, RBS/Steep, Active Record, RSpec, RuboCop, and Google Cloud.
Stars: ✭ 327 (+717.5%)
Mutual labels:  serverless-framework
serverless data pipeline example
Build and Deploy A Serverless Data Pipeline on AWS
Stars: ✭ 24 (-40%)
Mutual labels:  serverless-framework
pong
🏓 Pong for RESTful APIs (microservices pattern) using Serverless Framework ⚡
Stars: ✭ 27 (-32.5%)
Mutual labels:  serverless-framework
serverless-dynamodb-ttl
⚡️ Serverless Plugin to set DynamoDB TTL
Stars: ✭ 16 (-60%)
Mutual labels:  serverless-framework
serverless-email-scheduler
Schedule future emails with AWS Lambda and Step Functions
Stars: ✭ 29 (-27.5%)
Mutual labels:  serverless-framework
serverless-web-app-example
Serverless React Web App Example
Stars: ✭ 41 (+2.5%)
Mutual labels:  serverless-framework
serviceless
[DEPRECATED] Cli tool on top of Serverless framework
Stars: ✭ 22 (-45%)
Mutual labels:  serverless-framework
ionic-app-with-aws-cognito
Angular 4, Ionic 3, and AWS (Amazon) Cognito User Pools. Authentication out of the box.
Stars: ✭ 62 (+55%)
Mutual labels:  serverless-framework
desktop
A native GUI application that makes it easy to explore and test Serverless Framework applications built on AWS Lambda.
Stars: ✭ 42 (+5%)
Mutual labels:  serverless-framework
tencent-scf
Deploy Tencent Cloud Serverless Cloud Function in seconds with Serverless Components.
Stars: ✭ 86 (+115%)
Mutual labels:  serverless-framework
telegram-stepfunctions-bot
Serverless Telegram bot made on 4 AWS Lambda chained by AWS Step Functions. All of this written on Serverless Framework using plugins.
Stars: ✭ 26 (-35%)
Mutual labels:  serverless-framework
escapin
Escapin is a JS/TS transpiler for escaping from complicated usage of cloud services and APIs
Stars: ✭ 20 (-50%)
Mutual labels:  serverless-framework
awesome-serverless-framework
Serverless Framework 开发资源汇总 🚀
Stars: ✭ 120 (+200%)
Mutual labels:  serverless-framework
serverless-aws-rust-http
⚡🏗️ template for new aws lambda serverless rust http apps
Stars: ✭ 85 (+112.5%)
Mutual labels:  serverless-framework

TemplateAndServer

简化版的Android服务端模版,用于接口模拟测试。

关于我

github csdn 简书 掘金 知乎

演示(请star支持)

服务端演示

浏览器演示

写法对比

  • AndServer

  • SpringBoot

从上面的图片我们很容易看出,AndServer的写法和SpringBoot是非常相似的,就连项目工程的结构也是相似的。


功能介绍

本项目使用AndServer提供的服务搭建。

  • 统一的请求日志记录。

  • 全局异常捕获处理,返回统一API结果。

  • 增加全局权限验证拦截器。

  • 文件上传。

  • 后台管理界面。

  • 接口测试界面。

返回Json格式

{
    "code":0, //响应码,0为成功,否则失败
    "msg":"", //请求失败的原因说明
    "data":{} //返回的数据对象
}

使用方式

服务器配置

com.xuexiang.server.ServerConfig进行配置的修改。

服务接口编写

1.在com.xuexiang.server.controller包下创建Controller类。

2.在Controller类上加上@RestController@RequestMapping注解。

日志查看

在logcat上搜索关键词"AndServer"即可查看请求日志。

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