Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

[WIP] Lobby API 2.0 #61

Closed
wants to merge 10 commits into from
Closed

[WIP] Lobby API 2.0 #61

wants to merge 10 commits into from

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Apr 9, 2020

Very basic state of the new lobby-api. Please note that this is on top of #58.

I'm open for suggestions, but please keep in mind that a lot of this is pretty hacky atm to get a first proof-of-concept.

ToDo:

  • better watch-support in cargo-make
  • CORS fixes for dev
  • /api/lobby endpoint with demo-data
  • Integrate a database (and probably some infrastructure) into the project
  • Infrastructure for integration tests
  • Port data-models and API-endpoints to lobby
  • (optional) Consider merging lobby with rask-backend
  • anything else?

}

#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
struct Game {
name: String,
type_: String,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest using

#[serde(rename = "type")]
type_:String,

to avoid needing to rename the variable on the frontend

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh, nice, this is still from my very first attempt where I didn't know about all the fancy serde helpers 😅

Makefile.toml Outdated Show resolved Hide resolved
TrueDoctor and others added 6 commits August 2, 2020 11:01
This contains a simple HTTP-endpoint which serves the content relevant
for the lobby and entrypoint of the entire ecosystem.

For now, this is in its own subcrate, otherwise it would've been
necessary to enhance the websocket-code to serve HTTP traffic on ports
80/443 as well.
@Ma27 Ma27 closed this Oct 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite the DSA-lobby backend in Rust
2 participants