A proof of concept of an Application collecting information from a client and sending it to a server through a SDK,
This turborepo uses Yarn as a package manager. It includes the following packages/apps:
api
: a Cloudflare Worker serverless appweb
: a Vite appsdk
: a library to collect data from browserweb
and send it to theapi
.eslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
yarn build
To develop all apps and packages, run the following command:
yarn dev
The web
app is using SDK, using the API from the Cloud, to switch to local to must open apps/web/src/main.ts
and change https://incognito-api.incognito-poc.workers.dev
to http://localhost:8787
To run local it's necessary to create an account in https://planetscale.com/
and add the access to the database into file: apps/api/wrangler.toml
Replacing PLANET_SCALE_HOST
, PLANET_SCALE_PASSWORD
, PLANET_SCALE_USERNAME
with your credentials
You must create an account in cloudclare workers to run it locally, using wrangler.
Read the docs here: https://workers.cloudflare.com
https://incognito-web.vercel.app
Use Dev Tools to analyze the network, to change the location I recommend using Google Chrome, read the topic Manually change your location in Chrome