Skip to content

five-on-it / apps/api/src

apps/api/src ​

Process entrypoint of the platform API: reads the configuration (config.ts), wires the adapters it names (accounts and their friends, store, artifacts, moderation, the game servers, the level generator) and serves the routes of app.ts. With nothing set it runs on a laptop: development accounts, a JSON store and artifacts under .foi-data, no moderation, the game server on 7777, spec drafts generated in this process when Blender is installed, creation by the platform's model off (FOI_CREATOR; on, its runners claim the briefs). The Compose stack (deploy/) runs it on Nakama, Postgres and S3 (the bucket is created at start when it is missing) with the generator worker. Steam (FOI_STEAM: the Web API's, or the fake for development) signs players in when it is on, and the Steam accounts' entitlements are asked about again every day while they are played.