Welcome to One!
Now you'll need to run a postgres database. We've included a
docker-compose.yml
that will set up everything for you.
You'll want to set up docker first:
- On Mac, we recommend OrbStack as it's faster.
- Otherwise Docker Desktop.
Now run:
docker-compose up
Set up your DB:
yarn db:init
You can now run your One app in development:
yarn dev
If using the default port, you can open it on the web now with https://0.0.0.0:8081
And on Native, you should be able to load it using the same URL. You'll need a native app set up, for this we recommend Expo Go.
To build your app for production:
yarn build:web
First, you'll need to generate the native code for your app:
yarn prebuild:native
Afterward, follow the instructions printed in the terminal to build and upload your iOS app for distribution.