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 20 and have Docker and Supabase installed.
Run npm install -g pnpm
to install pnpm.
Run pnpm install
to install the dependencies.
With Docker running, run supabase start
.
Create a .env
with DATABASE_URL
, PUBLIC_SUPABASE_URL
, PUBLIC_SUPABASE_ANON_KEY
, GITHUB_CLIENT_ID
, GITHUB_CLIENT_SECRET
. The first three should be visible using the command supabase status
. For the GitHub ones you would need to go into Developer Settings and create an OAuth App.
Run pnpm run dev -- --open
to start the development server and open the app in a new browser tab.