This is simple web presenting results of Sokol Skuhrov competitions build with Next.js
yarn installRace results are stored on AWS S3 instance. Configure AWS S3 credentials in .env.local file.
- copy .env.example file into .env.local
cp .env.example .env.local- configure valid
AWS_S3_BUCKET_ACCESS_KEY,AWS_S3_BUCKET_SECRET_KEY.AWS_S3_BUCKET_NAMEenvironment variables
yarn devOpen http://localhost:3000 with your browser to see the result.
yarn testRun this curl command (you will have to change api key parameter and path to your results.yaml file):
curl --data-binary "@/path/to/results.yaml" \
-H "Content-Type: application/yaml" \
-H "Api-Key: key" \
http://localhost:3000/api/results
Server will respond with HTTP status 200 and following json body in case of successful upload:
{"success":true}
Upload of results with the same race name and race date will overwrite existing results in the S3 storage.