Welcome to the codebase. See below for development set-up instructions. See Manifesto for what Billion even is.
These instructions were originally copy-pasted from https://github.com/t3-oss/create-t3-turbo (which this project is scaffolded from). I've modified it to get rid of the bs that we don't use. For example, I've commented out all of the original auth instructions cuz we're not using that for now.
Anything in blockquotes without admonitions (like this one you're reading) is additional commentary I added
pnpm run dev
And go to the
@acme/iostab in that TUI and follow Expo's instructions (pressi, typically)
Make sure you have:
- pnpm
- Xcode CLI stuff whatever (run
xcode-select --install)- Xcode installed with the iOS simulator installed (go to App Store)
- Postgres installed globally (unless you want to figure out how to run this project in a Docker container?). It's easy with https://postgresapp.com/ on macOS
(instructions copied from https://github.com/t3-oss/create-t3-turbo)
To get it running, follow the steps below:
git clone https://github.com/ThatXliner/billion.git
cd billion
# Install dependencies
pnpm i
# Configure environment variables
# There is an `.env.example` in the root directory you can use for reference
cp .env.example .env
# Push the Drizzle schema to the database
pnpm db:pushIdk why these instructions tell you to change the
devscript (inapps/expo) but if that's what helps, sure. Remember to change it back to"dev": "expo start",
- Make sure you have XCode and XCommand Line Tools installed as shown on expo docs.
Note
If you just installed XCode, or if you have updated it, you need to open the simulator manually once. Run npx expo start from apps/expo, and then enter I to launch Expo Go. After the manual launch, you can run pnpm dev in the root directory.
+ "dev": "expo start --ios",- Run
pnpm devat the project root folder.
(who is doing this anyway...)
-
Install Android Studio tools as shown on expo docs.
-
Change the
devscript atapps/expo/package.jsonto open the Android emulator.+ "dev": "expo start --android", -
Run
pnpm devat the project root folder.
Congrats it's set up. See CONTRIBUTING if you need to add a new UI component or a new package in the
packages/folder.
Now, everything below is NOT copy+pasted from the original template README. Good job reading this far. Send me a text if you did.
- If there's any issues with dependencies, just add to the project root.
# .npmrc
node-linker=hoisted
- Make sure Next.js is running. Maybe
cp .env.example .envand update the values (if needed)?
"CommandError: No development build (dev.thatxliner.billion) for this project is installed. Please make and install a development build on the device first. Learn more: https://docs.expo.dev/development/build/"
In this case, pnpm clean && pnpm install && cd apps/expo && pnpm ios before you go back to root and run pnpm dev. Maybe open the Xcode project and build from there?