To run this application locally:
- Clone the git repo
- In the project root, copy
.env.exampleto.env - Run
npm i, and thennpm run setupto perform initial setup - Start a dev server using
npm run dev
If you're getting an error that looks like this:
Invalid `prisma.user.findFirst()` invocation:
The column `main.User.mailingList` does not exist in the current database.
There's a new DB update and you'll need to trigger a Prisma schema update via
prisma migrate deploy. This looks at prisma/migrations and will update your
local database.
To do this, it's easiest to use Prisma studio, which gives you access to the sqlite database through a web UI.
npx prisma studio- Head over to http://localhost:5555/
- Select the
Usertable - Look for the
roles[]column and the row for your user - Click the
[0|Role]button, then select the admin role checkbox - Click the Green save button to save changes
- Profit