- Node.js 18+
- PostgreSQL running on
localhost:5432(or a cloud DB — see below) - npm
Local Setup Guide
sudo apt install postgresql postgresql-contrib sudo systemctl start postgresql
sudo -u postgres createdb tech_archive_dev
sudo -u postgres psql -c "CREATE USER your_user WITH PASSWORD 'your_password';" sudo -u postgres psql -c "GRANT ALL ON DATABASE tech_archive_dev TO your_user;"
Then set `DATABASE_URL` in `backend/.env` to:
DATABASE_URL="postgresql://your_user:your_password@localhost:5432/tech_archive_dev?schema=public"
# Setup
### 1. Clone and install dependencies
git clone https://github.com/Inovate-Ishaan/Tech-Archive.git
cd Tech-Archive
# Backend
cd backend
cp .env.example .env
npm install
npx prisma migrate dev
npx prisma db seed
# Frontend
cd ../frontend
npm install
Edit backend/.env:
DATABASE_URL— your PostgreSQL connection stringJWT_SECRET— a random secret for signing tokensBREVO_API_KEY=""EMAIL_FROM="pawanteja626@gmail.com"
Open two terminals:
cd backend npm run dev
cd frontend VITE_API_URL=http://localhost:4000 npx vite --host