Skip to content

Commit bd3a74e

Browse files
committed
update readme
1 parent 24df7c1 commit bd3a74e

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1-
# st-api
2-
SurfTimer FastAPI
1+
![Downloads](https://img.shields.io/github/downloads/tslashd/st-api/total?style=flat-square) ![Last commit](https://img.shields.io/github/last-commit/tslashd/st-api?style=flat-square) ![Open issues](https://img.shields.io/github/issues/tslashd/st-api?style=flat-square) ![Closed issues](https://img.shields.io/github/issues-closed/tslashd/st-api?style=flat-square) ![Size](https://img.shields.io/github/repo-size/tslashd/st-api?style=flat-square)
2+
3+
**Use this at your own risk!**
4+
5+
# SurfTimer FastAPI
6+
This is a project to build an API for SurfTimer plugin and implement functionality to use it instead of MySQL connection.
7+
Idea for this came about when I did some refactoring for `SurfTimer-Mapchooser` to get it's data from an API instead of MySQL and the processing time *drastically* decreased, so why not try it for `SurfTimer` itself?
8+
9+
There is still quite a bit of queries to be transferred from all `*.sp` files in `SurfTimer` source code to the main `queries.sp` and to switch using them as variables instead of straight queries in `Format(...);`.
10+
11+
Everyone is welcome to **PR** code if they want to help out. I cannot promise that this will be 100% usable at any point in time, but you can give it go using my `SurfTimer` fork for it [here](https://github.com/tslashd/SurfTimer/tree/py-fastapi-integration)
312

413

514
## Pre-Requisites
15+
- Install dependancies `pip install -r requirements.txt`
616
- Copy `config.json.example` to `config.json` and populate
717
- Create `requests.json` and `denied.json` files
18+
- Run it `uvicorn main:app --port <YOUR_PORT_HERE> --host 0.0.0.0 --reload`
19+
- Check it out at `https://<yourDomain>.com/docs`
820

921

1022
### To Do

0 commit comments

Comments
 (0)