Starter kit for a Farcaster client. Uses Expo + React Native + Neynar.
- Start the development server by running the command
npm run server
- In a new terminal, run the command
npx expo start -c
- Add a
.env
file withAPI_DEV_URL
,PORT
,API_PROD_URL
, andNEYNAR_KEY
environment variables. - You'll want to plug in your server's URL into the
API_DEV_URL
variable (e.g. "http://localhost:3000"). I'd recommmend using ngrok if you want to test the build on your device or simulator using Expo Go.
- First, you should deploy the server. I recommend using railway. Make sure you change the start command to
npm run server
and add thePORT
andNEYNAR_KEY
environment variables. - Once deployed, you should enable a public domain (available in the instance's settings tab on Railway). Take that url (e.g. "https://example.up.railway.app") and put it in the
API_PROD_URL
environment variable in your project. - Now take your entire env sheet and add it to the "secrets" section of your project on Expo's website. You may have to configure the project if you haven't already.
- To build and submit the app, use the
npx eas build -p ios
andnpx eas submit -p ios
. I haven't tested android submission so please let me know if it doesn't work for you. - That should be it!
Built by @matthew. Use and reconfigure however you'd like. Shoot me questions via DC on Warpcast.