This is a starter project that uses tRPC, React.js, and AWS CDK. It's written in TypeScript and uses Yarn as the package manager.
This repository uses yarn workspaces and contains following packages,
- Server
- Client (Frontend client - vite + react + tailwind)
- Database Migrations (Knex for migrations)
- Database client (Used by server to connect with postgres)
- Schemas (JSON Schemas common for Frontend and Server)
- Infrastructure (uses AWS CDK for deployments)
- Clone the repository.
- Install the dependencies with
yarn install.- Follow the instructions at Yarn Website to install using
corepack
- Follow the instructions at Yarn Website to install using
- Copy
.env.sampleto.envand fill in your environment variables for each package. - Build
schemas&dbclientusingyarn dbclient:build&yarn schemas:build - Start the server with
yarn server:start. - Start the client using
yarn client:start.
For VSCode use the
starter.code-workspacefile to open the workspace
- Run tests with
yarn dbclient:testfor testing dbclient. - Run tests with
yarn server:testfor testing server. - Run tests with
yarn client:testfor testing the client.
Build the application with yarn build.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


