Note
This repository is shared for demonstration purposes only, written in a limited amount of time, and is not intended to be used as a production-ready application.
The goal is to demonstrate how one might use Astro DB in a Starlight application, handle form and image validation, and interface with other services such as GitHub and Cloudflare R2.
This repository contains a basic example of a showcase related set of custom pages in a Starlight application using Astro DB.
Users can login using their GitHub account and submit their own showcase entry which must include a name, a URL, and an image at specific dimensions.
Users with the admin permission can approve or reject entries.
Approved entries are displayed on the showcase page for everyone to see.
- GitHub authentication powered by Lucia
- Image hosted on Cloudflare R2
- The application requires various environment variables to be set. Duplicate the
.env.examplefile and rename it to.env.development.local. Then, fill in the required values (the example file contains links to the documentation for each service). - Install the dependencies using
pnpm install. - Run the application using
pnpm dev.
Licensed under the MIT License, Copyright © HiDeoo.
See LICENSE for more information.