All Projects → SIT-kite → kite-server

SIT-kite / kite-server

Licence: GPL-3.0 license
“上应小风筝”小程序 API 代码和文档, 基于 Rust 语言的 poem 框架编写.

Programming Languages

rust
11053 projects
shell
77523 projects

Projects that are alternatives of or similar to kite-server

gothic
🦇 Gothic is a user registration and authentication SWT/JWT microservice. It supports REST, gRPC, and gRPC Web API, reCAPTCHA & a variety of DBs with Gorm.
Stars: ✭ 65 (+242.11%)
Mutual labels:  restful-api
rest.vertx
A JAX-RS like annotation processor for vert.x verticals and more
Stars: ✭ 138 (+626.32%)
Mutual labels:  restful-api
portal
A lightweight framework for golang object (struct) serialization (mapping). Inspired heavily by marshmallow (a Python library).
Stars: ✭ 24 (+26.32%)
Mutual labels:  restful-api
go-onion-architecture-sample
Sample RestAPI project write in Go
Stars: ✭ 40 (+110.53%)
Mutual labels:  restful-api
RESTCountries.NET
.NET Standard wrapper library around the API provided by REST Countries https://restcountries.com. The world in .NET 🔥.
Stars: ✭ 33 (+73.68%)
Mutual labels:  restful-api
feedpushr
A simple feed aggregator daemon with sugar on top.
Stars: ✭ 222 (+1068.42%)
Mutual labels:  restful-api
springboot-bestpractice
SpringBoot best practice architecture. Using Spring Security, Spring Data JPA.
Stars: ✭ 51 (+168.42%)
Mutual labels:  restful-api
gin-api-boilerplate
A Go RESTful API server with gin and docker
Stars: ✭ 16 (-15.79%)
Mutual labels:  restful-api
Mangadb
A Secured RESTful API Service for Manga
Stars: ✭ 17 (-10.53%)
Mutual labels:  restful-api
angular6-httpclient-example
Angular 6 HttpClient: Consume RESTful API Example
Stars: ✭ 38 (+100%)
Mutual labels:  restful-api
ogen
OpenAPI v3 code generator for go
Stars: ✭ 436 (+2194.74%)
Mutual labels:  restful-api
egg-RESTfulAPI
基于egg.js2.x的RESTfulAPI风格的项目模板,用于快速构建高性能的服务端。
Stars: ✭ 70 (+268.42%)
Mutual labels:  restful-api
metalarchives-api
RESTful API for metal-archives.com
Stars: ✭ 26 (+36.84%)
Mutual labels:  restful-api
AnomalyDetection
基于智能计算框架nupic的异常检测restful Api.
Stars: ✭ 31 (+63.16%)
Mutual labels:  restful-api
project-tracking-system-backend-app
Enterprise project tracker, tracks commits done by employees after getting assigned to a couple of projects by their managers
Stars: ✭ 62 (+226.32%)
Mutual labels:  restful-api
YuiAPI
一个浏览器API测试客户端,API文档生成器,支持chrome/firefox/新版edge
Stars: ✭ 25 (+31.58%)
Mutual labels:  restful-api
restful-services-in-pyramid
RESTful / HTTP services in Pyramid and Python course handout materials
Stars: ✭ 56 (+194.74%)
Mutual labels:  restful-api
owlos
DIY Open Source OS for building IoT ecosystems
Stars: ✭ 43 (+126.32%)
Mutual labels:  restful-api
spotifyApiSpring
Spring-boot MVC application consuming Spotify's REST API
Stars: ✭ 28 (+47.37%)
Mutual labels:  restful-api
api
DotKernel's PSR-7 REST style API built around the Mezzio API skeleton.
Stars: ✭ 16 (-15.79%)
Mutual labels:  restful-api

上应小风筝 API v2(WIP)

概要

本项目旨在为上海应用技术大学的学生提供校园信息整合与管理服务,项目背景详情见 上应小风筝 项目仓库。

后端 API 为整个项目提供接口支持和数据处理。由于经费有限,尽可能需要一个资源占用小的后端服务,开发者希望它能在单核 1G 内存的机器上流畅运行,并承载和选课阶段差不多的访问量。 在之前的测试中,能稳定应对 1k 左右的并发量,并保持低内存占用。

该分支是 2.0 版本的服务端。由于学校要求导致的业务调整,上应小风筝将切换为 App 模式运营,一些功能(如账户系统)需要进行重构, 如教务模块(成绩查询、课表查询等)将下线,相关代码功能到 kite-app 项目并使用 Dart 语言重写。 当前的服务端仅提供基本的服务,运营支持如软件更新、使用统计,业务逻辑如公告、电费查询,并会添加查给分、二手交易等功能。

功能

  • 电费查询
  • 空教室查询
  • 二手闲置交易
  • 入学信息查询
  • 失物招领
  • 应用公告
  • 应用运营统计
  • 应用更新

环境配置

数据库配置

请先部署好数据库,可以参考 配置文档。考虑到可能的兼容性问题,建议数据库版本不低于 PostgreSQL 13.2。推荐使用 DataGrip 进行后续的数据库管理操作。

编译

请先确保系统中已预装有 rust 编程环境(rustc、cargo等),并已连接上互联网。

下载并编译:

git clone https://github.com/SIT-Yiban/kite-server.git -b v2
cd kite-server
cargo build

同时修改根目录下 kite.example.toml 文件。默认如下:

# HTTPS API service address.
bind = "0.0.0.0:443"
# Postgresql connection string.
db = "postgresql://user:password@address:port/database"
# Token secret for API.
secret = "secret"
# Directory path should be end with "\"
attachment = "D:\\tmp\\"
# secret for weather APi
qweather_key = "secret"

执行下面命令即可运行,目标二进制文件存放在 target 目录下。

cargo run

有关项目

项目 说明
kite-agent 后端数据抓取工具
kite-protocol 通信协议库(已废弃)
kite-string 校园网爬虫工具

如何贡献

非常欢迎你的加入!提一个 Issue 或者提交一个 Pull Request。

如果您有意见或建议,可以联系我们。

开源协议

GPL v3 © 上海应用技术大学易班 sunnysab

除此之外,您不能将本程序用于各类竞赛、毕业设计、论文等。

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