···2323 npx concurrently --names "sveltekit,migrate,server" \
2424 "npx vite dev --host" \
2525 "npx graphile-migrate watch" \
2626+ "cd api && watchexec -e .gleam,.toml,.js,.erl gleam build --target javascript" \
2627 "cd server && gleam run"
27282829[group: "run"]
···3031 npx concurrently --names "sveltekit,migrate,server,tauri" \
3132 "npx vite dev --host" \
3233 "npx graphile-migrate watch" \
3434+ "cd api && watchexec -e .gleam,.toml,.js,.erl gleam build --target javascript" \
3335 "cd server && gleam run" \
3436 "npx tauri dev"
35373638[group: "dev"]
3737-init: get
3838- cp .env.example .env.local
3939+init:
4040+ mise install
4141+ cargo install watchexec-cli --locked
4242+ cp -n .env.example .env.local
3943 cd .git/hooks && ln -sf ../../.hooks/* .
4044 if [ ! -f .env ]; then ln -s .env.local .env; fi
4545+ just get
4146 just up
42474348[group: "dev"]
···73787479[group: "dev"]
7580check:
8181+ cd api && gleam check
8282+ cd server && gleam check
7683 npx svelte-kit sync
7784 npx svelte-check --tsconfig ./tsconfig.json
7885 cd src-tauri && cargo check
7979- cd server && gleam check
80868187[group: "dev"]
8288watch:
···90969197[group: "dev"]
9298fmt:
9999+ cd api && gleam format
100100+ cd server && gleam format
93101 npx prettier --write . --cache
94102 cd src-tauri && cargo fmt
9595- cd server && gleam format
9610397104[group: "dev"]
98105test:
106106+ cd api && gleam test
107107+ cd server && gleam test
99108 npm test
100100- cd server && gleam test
101109 cd src-tauri && cargo test
102110103111[group: "database"]
···11+# cartography_api
22+33+[](https://hex.pm/packages/cartography_api)
44+[](https://hexdocs.pm/cartography_api/)
55+66+```sh
77+gleam add cartography_api@1
88+```
99+```gleam
1010+import cartography_api
1111+1212+pub fn main() -> Nil {
1313+ // TODO: An example of the project in use
1414+}
1515+```
1616+1717+Further documentation can be found at <https://hexdocs.pm/cartography_api>.
1818+1919+## Development
2020+2121+```sh
2222+gleam run # Run the project
2323+gleam test # Run the tests
2424+```
+26
api/gleam.toml
···11+name = "cartography_api"
22+version = "1.0.0"
33+target = "javascript"
44+55+# Fill out these fields if you intend to generate HTML documentation or publish
66+# your project to the Hex package manager.
77+#
88+# description = ""
99+# licences = ["Apache-2.0"]
1010+# repository = { type = "github", user = "", repo = "" }
1111+# links = [{ title = "Website", href = "" }]
1212+#
1313+# For a full reference of all the available options, you can have a look at
1414+# https://gleam.run/writing-gleam/gleam-toml/.
1515+1616+[javascript]
1717+typescript_declarations = true
1818+runtime = "node"
1919+2020+[dependencies]
2121+gleam_stdlib = ">= 0.44.0 and < 2.0.0"
2222+gleam_json = ">= 3.1.0 and < 4.0.0"
2323+glepack = { git = "https://github.com/Lemorz56/glepack", ref = "main" }
2424+2525+[dev-dependencies]
2626+gleeunit = ">= 1.0.0 and < 2.0.0"
+15
api/manifest.toml
···11+# This file was generated by Gleam
22+# You typically do not need to edit this file
33+44+packages = [
55+ { name = "gleam_json", version = "3.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "44FDAA8847BE8FC48CA7A1C089706BD54BADCC4C45B237A992EDDF9F2CDB2836" },
66+ { name = "gleam_stdlib", version = "0.68.1", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "F7FAEBD8EF260664E86A46C8DBA23508D1D11BB3BCC6EE1B89B3BC3E5C83FF1E" },
77+ { name = "gleeunit", version = "1.9.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "DA9553CE58B67924B3C631F96FE3370C49EB6D6DC6B384EC4862CC4AAA718F3C" },
88+ { name = "glepack", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], source = "git", repo = "https://github.com/Lemorz56/glepack", commit = "7a7df549845ccec8f92c757adbfb9c76e6c70692" },
99+]
1010+1111+[requirements]
1212+gleam_json = { version = ">= 3.1.0 and < 4.0.0" }
1313+gleam_stdlib = { version = ">= 0.44.0 and < 2.0.0" }
1414+gleeunit = { version = ">= 1.0.0 and < 2.0.0" }
1515+glepack = { git = "https://github.com/Lemorz56/glepack", ref = "main" }