race-timer's People
race-timer's Issues
results endpoint should return the id of the active group, if there is any.
And also if its started or not
Start group endpoint
See architecture diagram
Hideable admin bar, so we can use admin client in wallboard mode
Feedback about each server call
endpoints should "break" after first error
Now the flow continues, which can lead to malformed JSON response:
{"error": pq: insert or update on table "participants" violates foreign key constraint "participant_group"}{"startNumber":10,"groupId":0,"raceTimeMs":-1}
Register race time
See architecture diagram
Server O11y
What we need:
- Execution times by SQL query
- HTTP response times by request
- Number of stored results
It would be really nice to export those as prometheus metrics and display them on a Grafana board.
"Create segment" endpoint
Create the Create segment
endpoint from the architecture diagram, and implement the whole flow.
Active group can be started twice, participant can be finished twice
Disable buttons when it makes sense
Eg. start button should be disabled if group already started.
This last part is blocked by #24
Create GET segments endpoint
Its not on the architecture diagram, but it will be a low hanging fruit after the POST segments endpoint, and it will be useful for our admin client.
Get results endpoint
See architecture diagram
Create group endpoint
Consider using function components instead of class components
Here is a doc about the difference
Cache race instance
Register participant endpoint
See architecture diagram
SRE
Consider:
- GO routines
- Contexts with deadlines
- loadtesting
Display results by segment
Auto-refresh
Consider using typescript instead of javascript
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.