This is a template for a fullstack web application. It is laid out as a monorepo composed of 3 packages by default:
- client: Frontend application built with Vite
- server: Backend API built with Fastify
- lib: Library containing shared code used in both the client and server
- Node.js v18+
- Python3 (for running lerna/nx commands)
Install dependencies:
yarn
Start the app in dev mode:
yarn dev
Commands can be run in the package workspaces by prefixing the command with the package name.
For example:
yarn client test
This repository contains a workflow that publishes docker images (client + server) to the specified GCP artifact registry. In order to publish images, the following GitHub Actions variables and secrets need to be set.
IMAGE_REGISTRY
: the location of the image registry being published to.
GCP_CREDS
: a base64 encoded service account key json file. The service account should have read/write permissions on the artifact registry.