This is a demo application that you can run locally on your machine in a dev environment. This application includes a self-hosted PowerSync service with MongoDB.
- Docker
- pnpm
- Node.js
This repo has a three-step process, please follow them in order:
- Configure and launch the PowerSync service (which) includes the backend-api which the client application will use for anonymous auth i.e. there is no user login for the app.
- Configure and launch the React Native application
- Navigate to the
mongodb-powersync-service
directory in the terminal - Copy the template env and set the properties accordingly
~ cp .template.env .env
- Run docker compose up
~ docker compose up --force-recreate --build
- Import some data for the database
This will configure the PowerSync service, spin up a basic backend API which the client application uses and a MongoDB base.
- Navigate to the
attendee-list-client
directory - Copy the template env and set the properties accordingly
~ cp .template.env .env
- Install dependencies
~ pnpm install
- Run the application in the ios simulator
~ pnpm ios