Follow these steps to set up and run your local version of Rosen App:
-
Postgres & Rosen Service (Optional for bridge page access)
- Required for full functionality
- Setup instructions: Rosen Service README
-
Vercel KV Instance
- Required for API rate limiting feature
- Use Vercel KV or host your own instance
-
Install Dependencies and Build Packages
npm install ./build.sh cd apps/rosen
-
Fetch Tokens Data
npm run get-config
-
Set Environmental Variables
cp .env.example .env.local # Edit .env.local with your configuration
-
Launch the App
npm run dev
-
Exclude tokens from the dropdown list on the bridge page
# Example 1 # Remove the `RSN` token when the source is `ergo` and the destination is `cardano` NEXT_PUBLIC_BLOCKED_TOKENS='ergo,cardano,RSN;' # Example 2 # Remove all tokens when the source is `cardano` and the destination is `bitcoin` NEXT_PUBLIC_BLOCKED_TOKENS='cardano,bitcoin,*;' # Example 3 # Remove the `BTC` token when the source is `bitcoin` NEXT_PUBLIC_BLOCKED_TOKENS='bitcoin,*,BTC;' # Example 4 # Remove the `ERG` token when the destination is `bitcoin` NEXT_PUBLIC_BLOCKED_TOKENS='*,bitcoin,ERG;' # Example 5 # Remove the `ERG` token NEXT_PUBLIC_BLOCKED_TOKENS='*,*,ERG;' # Example 6 # Combine all previous configs together NEXT_PUBLIC_BLOCKED_TOKENS='ergo,cardano,RSN; cardano,bitcoin,*; bitcoin,*,BTC; *,bitcoin,ERG; *,*,ERG;'