8000 GitHub - timbod7/myc-scores-2: MYC ILCA fleet scoring system
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

timbod7/myc-scores-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1 Overview

This repo implement V2 of the MYC Lasers Scoring System

2 Local setup

Currently linux and macos are supported.

Install docker and rust/cargo for your platform. Then install deno, node, pnpm, and adl into a repo local directory by sourcing the local setup script:

. deno/local-setup.sh

Check installed tool versions with:

deno --version
node --version
adlc show --version 

3 Local development

When you've changed any ADL, regenerate rust/typescript/sql code with

deno task genadl

3.1 Start postgres

(cd platform/dev; docker compose up -d db)

3.2 Run the unit tests

(
cd rust/server
export DB_CONNECTION_URL=postgresql://postgres:xyzzy@localhost:5432/appdb
cargo test -- --test-threads=1
)

3.3 Start the server

(
cd rust/server
export MYCSCORES_SERVER_CONFIG='{
  "http_bind_addr": "0.0.0.0:8081",
  "db": {
    "host": "localhost",
    "port": 5432,
    "dbname": "appdb",
    "user": "postgres",
    "password": "xyzzy"
  },
  "jwt_access_secret": "shouldbetrulysecretbutnotrightnow",
  "jwt_refresh_secret": "nottomentionthisone"
 }'
export RUST_LOG=info
cargo run --bin mycscores-server
)

This will create the db schema and/or apply any necessary migrations

3.4 Create some test users

(
cd rust/server
export DB_CONNECTION_URL=postgresql://postgres:xyzzy@localhost:5432/appdb
cargo run --bin mycscores-tools -- create-user joe@test.com Joe xyzzy1
cargo run --bin mycscores-tools -- create-user --is-admin sarah@test.com Sarah abcdef
)

3.5 Start the api workbench in dev mode

(
cd ts/api-workbench
# note pnpm is installed by local-setup.sh
pnpm install
pnpm run dev
)


The api workbench will be accessible at: http://localhost:5174

About

MYC ILCA fleet scoring system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.5%
  • Rust 16.3%
  • Other 1.2%
0