This is a monorepo containing all the code for my personal website sharath.uk.
This is the UI part of my website which contains the entire website made using React.
This is a Cloudflare Workers API that I use to show poems on my website.
- Create a file called
.dev.vars
at./packages/api/.dev.vars
with the following content:
FIREBASE_SERVICE_ACCOUNT_KEY='{...}'
CLOUDFLARE_ACCOUNT_ID=...
CLOUDFLARE_API_TOKEN=...
TURSO_DATABASE_URL="libsql://....turso.io"
TURSO_AUTH_TOKEN=...
CDN_BASE_URL="https://cdn.sharath.uk/"
GITHUB_PAT=...
GHOST_URL="https://ghost.sharath.uk"
GHOST_KEY=...
- Create a file called
.env
at./packages/ui/.env
with the following content:
VITE_API_ENDPOINT='http://localhost:8787'
VITE_PUBLIC_BASE_URL='http://localhost:5173'
- Login to
wrangler-cli
using the following command:
pnpx wrangler login
- You can start both dev servers using the following command:
pnpm dev
- Open
http://localhost:5173
in your browser to view the website.