Skip to content

Frontend for Nexus Dashboard, a task management app focused on productivity, built with Next.js, React, and TailwindCSS.

Notifications You must be signed in to change notification settings

patriciasegantine/nexus-dashboard-frontend

Repository files navigation

Dashboard Analytics - Frontend

A modern React frontend application for data analytics and visualization, featuring a responsive dashboard interface.

🚀 Technologies

  • React - A JavaScript library for building user interfaces
  • Next.js - The React Framework for Production
  • TypeScript - JavaScript with syntax for types
  • Tailwind CSS - A utility-first CSS framework
  • React Query - Powerful asynchronous state management
  • Axios - Promise based HTTP client

🎨 Features

  • Responsive Dashboard Layout
  • Real-time Data Updates
  • Interactive Charts and Graphs
  • User Authentication
  • Dark/Light Theme
  • Error Handling
  • Loading States

🔒 Authentication

The application uses JWT authentication with:

  • Access tokens for API requests
  • Refresh token mechanism
  • Automatic token refresh
  • Protected routes
  • Persistent login state

📱 Responsive Design

  • Mobile-first approach
  • Tailwind CSS for styling
  • Responsive components
  • Adaptive layouts

🔄 State Management

  • React Query for server state
  • Context API for global state
  • Local storage for persistence
  • Form state management

📋 Prerequisites

  • Node.js 18.17 or later
  • npm or yarn

🔧 Installation

  1. Clone the repository
git clone https://github.com/patriciasegantine/dashboard-analytics-frontend.git
cd dashboard-analytics-frontend
  1. Install dependencies
npm install
  1. Set up environment variables
cp .env.example .env
  1. Configure your .env file with:
NEXT_PUBLIC_API_URL=http://localhost:4000

🏃‍♂️ Running the Application

Development

npm run dev

Build

npm run build

Start Production Server

npm run start

📦 Project Structure

frontend/
├── public/
├── node_modules/
├── src/
│ ├── app/
│ │ ├── (auth)/
│ │ └── (dashboard)/
│ ├── components/
│ ├── hooks/
│ ├── services/
│ ├── types/
│ └── utils/
└── package.json

📱 Routing

  • Next.js 13+ App Router
  • Route Groups
  • Layouts
  • Server and Client Components

🔗 API Integration

This project uses the Dashboard Analytics API for data management and authentication:

Main Endpoints:

Authentication

  • POST /auth/register - Create new user account
  • POST /auth/login - User authentication
  • POST /auth/refresh-token - Refresh access token
  • GET /auth/me - Get user profile
  • POST /auth/logout - User logout

Password Recovery

  • POST /auth/forgot-password - Request password reset
  • POST /auth/reset-password - Reset user password

For more details about the API, please check the API Documentation.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


Created with ❤️ by Patricia Segantine

About

Frontend for Nexus Dashboard, a task management app focused on productivity, built with Next.js, React, and TailwindCSS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published