Welcome to the PowerSync App! Follow the steps below to set up and run the application locally.
Ensure you have the following installed on your system:
-
Start PowerSync using Docker Compose
Navigate to thepowersync
folder and run the following command to start PowerSync services:docker-compose up
-
Set Up the Application
- Rename the
.env.example
file to.env
:mv .env.example .env
- Install dependencies:
pnpm install
- Rename the
-
Run Database Migrations
Execute the following command to run the database migrations using Drizzle:pnpm run migrate
-
Start the Application
Launch the app in development mode:pnpm run dev
- This setup uses PowerSync locally. The token is hardcoded for development purposes.
- We utilize the following libraries for token generation and management:
key-generator
token-service
(from the PowerSync demo repository)
Feel free to explore and modify the app as needed. Happy coding!