https://github.com/dylanlott/jank
a simple message board with MTG card recognition
https://github.com/dylanlott/jank
Last synced: 10 months ago
JSON representation
a simple message board with MTG card recognition
- Host: GitHub
- URL: https://github.com/dylanlott/jank
- Owner: dylanlott
- License: mit
- Created: 2025-01-15T05:26:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-30T06:38:54.000Z (over 1 year ago)
- Last Synced: 2025-06-17T10:46:21.946Z (12 months ago)
- Language: Go
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jank
```txt
_ __
(_)___ _____ / /__
/ / __ `/ __ \/ //_/
/ / /_/ / / / / ,<
__/ /\__,_/_/ /_/_/|_|
/___/
```
`jank` uses Go with SQLite to store data. It is intentionally simple with all front-end assets statically embedded in the Go binary at build time.
## Development
To run the server:
```sh
go run main.go
```
## Testing
### Create a board
```sh
curl -X POST -H "Content-Type: application/json" -d '{"name":"/salt/", "description":"let the hate flow"}' http://localhost:8080/boards
```
### List boards
```sh
curl http://localhost:8080/boards
```
### List threads for a given board
```sh
curl http://localhost:8080/threads/1
```
### Create a post in a thread
```sh
curl -X POST -H "Content-Type: application/json" -d '{"title":"Dimir control is OP"}' http://localhost:8080/threads/2
```
### Create post in a thread
```sh
curl -X POST -H "Content-Type: application/json" -d '{"author":"anonymous", "content":"bofades nutz"}' http://localhost:8080/posts/1/1
```
## Ideas
- Ability to represent annotated tress of cards
- Decklist handling
- Player profile integration with vedh.xyz
- Replay and game linking support for vedh games
## License
This project is licensed under the MIT License. See the [MIT LICENSE](./LICENSE) file for details.