Sitting at home during the COVID-19 pandemic my wife Kirsten and I were trying to figure out how we could best support our city's local artists, musicians, and businesses. It occured to us that we weren't going to be able to answer that question ourselves, so we built this as a way to allow them to tell us, on their terms, how we can support them during this unconventional time.
If you think this will help your city then please clone, fork, download, or copy+paste this codebase into your own repository and start your own #SupportLocal application. No permission required. We're all in this together.
You would be amazing if you submitted a PR to fix any of these!
- The photo uploader isn't working on the "Get Listed" form.
- There are no tests.
- The CSS is a one-file disaster and doesn't use a pre-processor.
- Built with NextJS 14 using the app router
- CI/CD and hosting through Vercel
- Data is stored with Vercel Postgres and accessed with Prisma
- Vercel Blob for image storage
- Tailwind for some styling
- Generate auth secret and set as the value to
AUTH_SECRET
in env - Add
ADMIN_USER
andADMIN_PASSWORD
to environment variables with whatever values you choose.
yarn install
yarn dev
View and edit DB
npx prisma studio
Lol
- Create a Vercel account if you don't have one already and make a new project.
- Follow this guide to create the Vercel Postgres database and sync environment variables locally
- Follow this guide to create a Vercel Blob store
- Run
npx prisma db seed
to populate the DB with mock data, or manually with Prisma Studio
- You'll need to run
npx prisma db push
anytime you make changes toschema.prisma
Businesses (Main Object)
see schema.prisma