About the website: This project aims to creat a platform where citizens of Berlin can report city infrastructural problems that they see in their everyday life to the municipality.
Users can:
- Register
- Log in
- Submit reports
- Track reports
- Edit Reports
- Delete Reports
- Upload photos
Prerequisites:
- Node.js (18.0 or later)
- npm (9.0 or later)
- Git
- Prisma CLI
- Postgres Database (Neon or local)
- Firebase
Setup guide:
- Clone
git clone https://github.com/aframeymi/CV.git
cd CV- Install Dependencies
npm install- Environment Variables
DATABASE_URL="postgresql://<user>:<password>@<your-neon-host>/<database>?sslmode=require"
FIREBASE_API_KEY=""
FIREBASE_AUTH_DOMAIN=""
FIREBASE_PROJECT_ID=""
FIREBASE_STORAGE_BUCKET=""
FIREBASE_MESSAGING_SENDER_ID=""
FIREBASE_APP_ID=""
PORT=5000- Initialize prisma
npx prisma migrate deploy- Seed
npm run prisma:seed- Run
npm run devTo open prisma studio:
npx prisma studioThe website is deployed on render.com https://cv-wluv.onrender.com
Database table created on: dbdiagram.io
