Skip to content

Repository files navigation

Agit Assessment - Task Manager

Made by me, Hans Immanuel Julius

🚀 Prerequisites

Before you begin, ensure you have the following installed:

🛠️ Installation & Setup

Follow these steps to get the project running locally.

1. Clone the Repository

git clone <repository-url>
cd agit_assesment

2. Install Dependencies

npm install

3. Environment Configuration

Create 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"

4. Database Setup (Prisma)

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 seed

Note: The seed command uses prisma/seed.ts to populate the database with sample tasks.

5. Run the Application

Start the development server:

npm run dev

Open http://localhost:3000 in your browser.

📂 Project Structure

  • app/: Next.js App Router pages and API routes.
  • components/: UI components.
  • prisma/: Database schema and seed script.
  • lib/: Utility functions and validation schemas.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages