kevenleone / Incognito

Home Page:incognito-web.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incognito App

A proof of concept of an Application collecting information from a client and sending it to a server through a SDK,

What's inside?

This turborepo uses Yarn as a package manager. It includes the following packages/apps:

Apps and Packages

  • api: a Cloudflare Worker serverless app
  • web: a Vite app
  • sdk: a library to collect data from browser web and send it to the api.
  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Utilities

This turborepo has some additional tools already setup for you:

Build

To build all apps and packages, run the following command:

yarn build

Develop

To develop all apps and packages, run the following command:

yarn dev

Local Envinronment

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

Accessing Production Environment

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

About

incognito-web.vercel.app


Languages

Language:TypeScript 86.3%Language:HTML 5.4%Language:CSS 5.1%Language:JavaScript 3.2%