Uses the PoetryDB API (https://poetrydb.org/) to present a user with a random poem.
-
Loading Spinner
-
Persistence Layer using Postgres on Supabase to save favorite poems with Drizzle as the ORM and GitHub OAuth for Auth.
-
Google OAuth.
-
Clone the repo.
-
Make sure you are using Node 22 and have Docker and Supabase installed.
-
Run
npm install -g pnpmto install pnpm. -
Run
pnpm installto install the dependencies. -
With Docker running, run
supabase start. -
Create a
.envwithDATABASE_URL,PUBLIC_SUPABASE_URL,PUBLIC_SUPABASE_ANON_KEY,GITHUB_CLIENT_ID,GITHUB_CLIENT_SECRET. The first three should be visible using the commandsupabase status. For the GitHub ones you would need to go into Developer Settings and create an OAuth App. -
Run
pnpm run dev -- --opento start the development server and open the app in a new browser tab.
