A developer productivity & logging platform Log your daily development activities, maintain a history, and track your coding streaks.
- Frontend: Next.js + Tailwind CSS
- Backend: Node.js + Prisma,Redis for caching
- Database: PostgreSQL
- Auth: GitHub OAuth with NextAuth.js
Follow the steps below to run the project locally.
git clone https://github.com/hemanth-1321/DailyDevs.git
cd logscd client
pnpm installCreate a .env.local file in the client/ directory:
touch .env.localPaste the following and replace with your actual values:
GITHUB_ID=your_github_oauth_client_id
GITHUB_SECRET=your_github_oauth_client_secret
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_random_secret_keypnpm devcd ../server
pnpm installYou have two options:
Option 1: Use Neon
- Sign up and create a new PostgreSQL instance.
- Copy the connection string and use it in your
.env.
docker run --name logs-db -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgresCreate a .env file in the server/ directory:
cp .env.example .envThen update it with your values:
DATABASE_URL=postgresql://user:password@localhost:5432/logsdb?schema=public
JWT_SECRET=your_jwt_secret
REDIS_URL= "redis://:devpassword@127.0.0.1:6379"
GEMINI_API_KEY=your_api_key
> ⚠️ Ensure your database name, username, and password match your PostgreSQL setup.
---
### 🧱 Run Prisma Migrations
```bash
pnpm db:migratepnpm dev