Monorepo for the Consent as a Service (CAAS) Platform
Consent as a Service (CAAS) is a web service designed to manage consents for user data. Its purpose is to act as an intermediary between an online service and the end user. The objective of this platform is to improve trust levels when using online services. This stems from the idea that if the user can trust the platform (CAAS) then by extension, they’re able to trust the service on the other end. This is done by providing the service with APIs which can be used to construct consent requests which consists of data types for the forms of data to be gathered.
Consent As A Service (CAAS) is an Open Platform designed to manage and store consents for users
This turborepo uses pnpm as a package manager. It includes the following packages/apps:
server
: a Nest.js app which provides the service implementationdocs
: a Next.js app which hosts documentationweb
: another Next.js app which provides the 'user' frontend to the platform-serviceui
: a stub React component library shared by bothweb
anddocs
applicationseslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepodomain
: Common Library hosting domain definitions, validators etc.database-prisma
: a Prisma.js library with the data-access implementation
Each package/app is 100% TypeScript.
auth0
: Authentication
To build all apps and packages, run the following command:
cd consent-as-a-service
pnpm run build
To Start a live development environment run:
cd consent-as-a-service
pnpm run dev
Additionally, packages may have their own setup requirements
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd consent-as-a-service
pnpm dlx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
pnpm dlx turbo link