An open API service indexing awesome lists of open source software.

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

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.