This repository contains the source code for the wrkplat 2.0 apps.
Powered by tRPC and Express.js. Authentication, authorisation, database queries and mutations are all handled here.
User-facing app for iOS, Android and Web. Built with React and Capacitor. Uses tRPC client to communicate with the backend in a type-safe way.
Shared UI components for the app and manager. Built with Panda CSS.
This will enable you to set your node version to the one we are using for this project.
- Mac: Install NVM from the official repository
- Windows Install nvm from coreybutler and restart VSCode.
- Open a terminal window and
cd
into the root of this project. - Install the project’s node version
nvm install
- Set your computer’s node version to the project’s node version
nvm use
- Install dependencies for the project
pnpm install
- Install Docker from here.
- Run
setup-local
in the root of the project:This will create initialpnpm setup-local
.env
files, spin up a local database in docker and run migrations.
- Start the app in dev mode
pnpm dev
- (Optional) Run the iOS simulator via Capacitor
Warning This will only work on macOS
- Open the project in XCode:
pnpm cap open ios
- Select a simulator from the dropdown menu in the top left corner
- Build and run the app with Cmd + R or the play button in the top left corner
- Open the project in XCode:
- Open a Pull Request with your changes
- When it gets merged, the app will be automatically deployed to fly.io