Monorepo for services and apps related to the RNTDemoApp
- Install Node.js and Yarn
- Install XCode from the AppStore (for iOS)
- Install the required tools for running the mobile app locally
- Install dependencies
yarn
- Start the background worker service (NodeJS app)
(cd services/background-worker && yarn run dev)
Let it fetch and store some data before starting the API
- Start the backend service (GraphQL API)
(cd services/api && yarn run dev)
- Start the React Native process and iOS and/or Android simulator in separate terminals as instructed here
- Build containers and spin them up
env BUILD_VERSION=$(git rev-parse --short HEAD) docker-compose up --build
- Ramp down
docker-compose down --remove-orphans
- Building with Docker Compose: disable buildkit
- The
API_URL
configured inclients/mobile-app/RNTDemoApp/.env
needs to point to your local IP address like192.168.x.x
when testing through Docker Compose, withlocalhost
the app fails to connect to the GraphQL endpoint
There's a single Github Action that both builds the Docker images (through Docker Compose) and then deploys the services to Azure Container Apps Environment. The docker-compose.build.yml
is reserved for the CI process.