This app allows users to create their own Philadelphia budget. More documentation (hopefully) coming soon.
To run locally, first you need a running Postgres URL. This project uses Prisma. You can create a free database in Prisma by going to the site https://www.prisma.io, clicking "Get started" and creating a Postgres database.
You can also use a local database as well.
Once you have a database, copy the example env file to .env:
cp .env.example .env
Add your database url to the DATABASE_URL= variable.
Generate the local Prisma config files:
npm run db:generate
Start the dev server:
npm run dev
npm run dev- start local dev servernpm run build- production buildnpm run start- run production servernpm run lint- run lintingnpm run format- run prettier and fixnpm run format:check- run prettier checknpm run test- run testsnpm run db:view- run the prisma studionpm run db:generate- generate db config and schema filesnpm run db:migrate- run db migrationsnpm run db:seed- seed current database
Prisma setup is scaffolded automatically in:
prisma/schema.prismaprisma/seed.tssrc/lib/prisma.tsprisma.config.tsprisma.compute.tssrc/generated/prisma