Skip to content

Latest commit

 

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

DailyDevs

A developer productivity & logging platform Log your daily development activities, maintain a history, and track your coding streaks.

Mocky Screenshot

  • Frontend: Next.js + Tailwind CSS
  • Backend: Node.js + Prisma,Redis for caching
  • Database: PostgreSQL
  • Auth: GitHub OAuth with NextAuth.js

⚙️ Getting Started

Follow the steps below to run the project locally.


🔁 Clone the Repository

git clone https://github.com/hemanth-1321/DailyDevs.git
cd logs

🖥️ Setup the Client (Frontend)

cd client
pnpm install

🔐 Configure Environment Variables

Create a .env.local file in the client/ directory:

touch .env.local

Paste 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_key

🚀 Start the Frontend

pnpm dev

🛠️ Setup the Server (Backend)

cd ../server
pnpm install

🗄️ Setup PostgreSQL

You 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.

Option 2: Use Docker Locally

docker run --name logs-db -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres

🔐 Configure Backend Environment Variables

Create a .env file in the server/ directory:

cp .env.example .env

Then 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:migrate

🖥️ Start the Backend Server

pnpm dev

🧰

About

A developer productivity & logging platform Log your daily development activities, maintain a history, and track your coding streaks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages