Made by me, Hans Immanuel Julius
Before you begin, ensure you have the following installed:
- Node.js
- PostgreSQL (Running locally or a cloud provider like Supabase/Neon)
Follow these steps to get the project running locally.
git clone <repository-url>
cd agit_assesmentnpm installCreate a .env file in the root directory. You can copy the structure from a template if provided, or simply add your database connection string:
# Connect to your PostgreSQL database
DATABASE_URL="postgresql://username:password@localhost:5432/mydb?schema=public"Initialize your database schema and seed it with initial data.
# Generate Prisma Client
npx prisma generate
# Push schema to the database (creates tables)
npx prisma db push
# Seed the database with initial tasks
npx prisma db seedNote: The seed command uses prisma/seed.ts to populate the database with sample tasks.
Start the development server:
npm run devOpen http://localhost:3000 in your browser.
app/: Next.js App Router pages and API routes.components/: UI components.prisma/: Database schema and seed script.lib/: Utility functions and validation schemas.