Heirloom is a small personal recipe manager. I've always wanted to build one for myself and now that I'm at Prisma, wanting to try out Prisma 2 in real world was the final push. I hope you enjoy it - the code is probably clowny but hey, you live you learn.
It's available on useheirloom.com but it's very very early so I didn't make it easy for people to sign up. If you're feeling adventurous, drop me an email at matej[at]useheirloom.com
and i'll point you to the sign up page. Here's a simple Sourdough Waffles Recipe as an example. I won't build a mobile client any time soon but it works pretty well as a Progressive Web App so it runs full-screen when you add it to your home page, which i've found satisfactory for now.
Heirloom is built on the following stack:
- Next.js for frontend and API
- Static rendering + client side calls to API routes
- Prisma 2 for connecting to a Postgres database
- Deployed on Vercel.
- check out This fairly current expenses table
Feel free to send out an Issue / Pull Request.
Here are the steps to get this working locally
Clone this repository:
git clone [email protected]:hrescak/useheirloom.git
Create a .env
file in the root directory with the URL to your local database. Here's a good article on how to set up a local postgres database.
DATABASE_URL='LINK_TO_DATABASE'
Install dependencies:
yarn install
Note that this also generates Prisma Client JS into node_modules/@prisma/client
via a postinstall
hook of the @prisma/client
package from your package.json
.
yarn dev
The app is now running, navigate to http://localhost:3000/
in your browser to explore its UI.
BDS-3 Clause License. View License