Skip to content

zb-coderZ/Route_map-Like-Indrive-

Repository files navigation

Route Map - Professional Dashboard

A professional Next.js application with authentication, dashboard, and route management features.

🏗️ Project Structure

route-map/
├── src/
│   ├── app/                    # Next.js App Router pages
│   │   ├── auth/              # Authentication pages
│   │   │   ├── login/
│   │   │   └── register/
│   │   ├── dashboard/         # Dashboard pages
│   │   │   ├── layout.tsx     # Dashboard layout with sidebar
│   │   │   └── page.tsx       # Main dashboard page
│   │   ├── layout.tsx         # Root layout
│   │   ├── page.tsx          # Home page (redirects to login)
│   │   └── globals.css       # Global styles
│   ├── components/            # React components
│   │   ├── ui/               # Reusable UI components
│   │   │   ├── Button.tsx
│   │   │   ├── Input.tsx
│   │   │   ├── Card.tsx
│   │   │   └── index.ts
│   │   ├── auth/             # Authentication components
│   │   ├── dashboard/        # Dashboard-specific components
│   │   └── layout/           # Layout components
│   │       ├── Header.tsx
│   │       ├── Sidebar.tsx
│   │       └── index.ts
│   ├── lib/                   # Library code
│   │   └── api-client.ts     # API client utility
│   ├── services/             # API service layer
│   │   └── auth.service.ts   # Authentication service
│   ├── hooks/                # Custom React hooks
│   │   └── index.ts          # useLocalStorage, useDebounce, etc.
│   ├── utils/                # Utility functions
│   │   └── helpers.ts        # Helper functions
│   ├── types/                # TypeScript type definitions
│   │   └── index.ts          # Shared types
│   ├── constants/            # Application constants
│   │   └── index.ts          # Constants and enums
│   └── config/               # Configuration files
│       └── index.ts          # App configuration
├── public/                    # Static assets
└── ... (config files)

🚀 Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, pnpm, or bun

Installation

  1. Install dependencies:
npm install
# or
yarn install
# or
pnpm install
  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
  1. Open http://localhost:3000 in your browser.

📦 Features

Authentication

  • ✅ Login page with form validation
  • ✅ Registration page
  • ✅ Protected routes
  • ✅ Authentication service layer

Dashboard

  • ✅ Responsive sidebar navigation
  • ✅ Header with user profile
  • ✅ Dashboard overview with stats
  • ✅ Recent activity feed
  • ✅ Quick actions panel

UI Components

  • ✅ Button component with variants
  • ✅ Input component with validation
  • ✅ Card component
  • ✅ Reusable layout components

Architecture

  • ✅ Clean folder structure with src directory
  • ✅ TypeScript for type safety
  • ✅ Path aliases (@/components, @/lib, etc.)
  • ✅ Service layer for API calls
  • ✅ Custom hooks for common patterns
  • ✅ Utility functions and helpers
  • ✅ Constants and configuration management

🛠️ Tech Stack

  • Framework: Next.js 16
  • Language: TypeScript
  • Styling: Tailwind CSS v4
  • Font: Inter (Google Fonts)

📝 Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm start - Start production server
  • npm run lint - Run ESLint

🎨 Customization

Updating App Name

Edit src/config/index.ts to change app name and other configurations.

Adding New Routes

  1. Create a new directory in src/app/dashboard/[route-name]
  2. Add a page.tsx file
  3. Add navigation item in src/app/dashboard/layout.tsx

Creating New Components

  1. Add component to appropriate directory:
    • UI components → src/components/ui/
    • Feature components → src/components/[feature]/
    • Layout components → src/components/layout/
  2. Export from index.ts for easier imports

Adding API Services

  1. Create service file in src/services/
  2. Use apiClient from src/lib/api-client.ts
  3. Define types in src/types/index.ts

📋 Next Steps

TODO: Backend Integration

  • Set up API endpoints
  • Implement authentication middleware
  • Connect to database
  • Add environment variables

TODO: Enhanced Features

  • Implement route management pages
  • Add user management
  • Create analytics dashboard
  • Add settings page
  • Implement notifications
  • Add dark mode support

Learn More

To learn more about Next.js, take a look at the following resources:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors