Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ralphilius/sqb-federation-server
https://github.com/ralphilius/sqb-federation-server
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ralphilius/sqb-federation-server
- Owner: ralphilius
- License: mit
- Created: 2021-08-29T18:20:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T14:29:19.000Z (11 months ago)
- Last Synced: 2024-04-20T19:37:42.418Z (7 months ago)
- Language: TypeScript
- Homepage: sqb-federation-server.vercel.app
- Size: 221 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stellar Federation Server
NextJS implementation for Federation Server as described in [stellar-quest-bounties](https://github.com/tyvdh/stellar-quest-bounties/blob/main/bounties/level-2/federation-server.md)Getting Started
--------### 1. Register Supabase account
You need to register a [Supabase](https://supabase.io) account and acquire below credentials in project Settings:
- Server URL
- Anon Key
- Service Key### 2. Set up database schema
Open the SQL in Supabase project dashboard then run the script in `schema.sql` to set up tables, functions and triggers
### 3. Set up environment variables
```bash
npm run setup
# or
yarn setup
```
Enter the credentials as instructed in the CLI.### 4. Run the development server
```bash
npm run dev
# or
yarn dev
```### 5. Test the implementation
API is available under `/api/federation` endpoint. Supported queries:
- `q`: Federation address to query for Stellar address
- `type`: Only `name` is supported now