Quick start
Run SDK sample servers against a host you have access to, or bring up the open-source rails-core stack locally.
You can integrate in two common ways: small sample servers in rails-sdk-samples/ that call a Rails host you already have access to, or the rails-core repo to run the full gateway and backing services on your machine.
Official SDKs
Section titled “Official SDKs”For install commands and how to construct a client in each language, open a page below. Each page matches the rails-sdks/<sdk>/README.md in this repo and links you to the API Reference tab for URLs and snippets.
- TypeScript —
rails-sdks/rails-typescript/ - Go —
rails-sdks/rails-go/ - Java —
rails-sdks/rails-java/ - Kotlin —
rails-sdks/rails-kotlin/ - C# —
rails-sdks/rails-csharp/
Path A — SDK samples (fastest “first request”)
Section titled “Path A — SDK samples (fastest “first request”)”Use this when someone has already given you a base URL and server API key for a hosted environment. Skip this path if you still need to create databases or run the core services yourself.
- In this monorepo or from a clone, open
rails-sdk-samples/(see that repo’sREADME.mdfor the full matrix). - Choose a language folder (
typescript/,go/,java/,kotlin/, orcsharp/), install dependencies, and copy.env.exampleto.env. - Set:
RAILS_BASE_URL— Use the value from.env.exampleunless you were given a different host.RAILS_API_KEY— Your server API key (never commit real values).
- Start the sample (for example, from
typescript/:npm run dev). Open the sample’s Swagger UI (oftenhttp://localhost:8081/, or the port listed in the sample README; Go defaults to 8083).
Samples ship Swagger UI and /openapi.json so you can exercise routes against your configured host. They do not run Postgres or core services for you.
Path B — rails-core on your machine
Section titled “Path B — rails-core on your machine”Use this when you want the gateway, users, accounts, and ledger services running together on localhost—for deeper development or contract testing against your own stack.
-
Clone
rails-core(seerails-core/README.mdin this monorepo or the upstream repository). -
Copy
.env.exampleto.envand set database URLs (NEON_API_KEYfor automated Neon setup, orUSERS_DATABASE_URL,ACCOUNTS_DATABASE_URL,LEDGER_DATABASE_URL, andAUDIT_DATABASE_URLmanually—details inrails-core/docs/quickstart.md). -
Run:
Terminal window make dev -
When healthy, the gateway listens on
http://localhost:8080. Static docs are under/docs/; APIs are prefixed/users/,/accounts/, and/ledger/.
Optional checks with the stack up:
make healthmake testmake test assumes http://127.0.0.1:8080 unless you set GATEWAY_URL.
What to read next
Section titled “What to read next”- Architecture — Gateway layout and service boundaries.
- Authentication — Keys, base URL, and client env vars.
- API Reference tab — Endpoints and SDK-aligned examples.