Skip to content

FRONTEND: Setup Next.js 14 and Essential Frontend Dependencies #1

@yusuftomilola

Description

@yusuftomilola

Description

We need to set up the frontend for the ManageHub project with Next.js 14 and essential dependencies. This will provide a solid foundation for building the hub management system.

Tasks

  1. Initialize Next.js 14

    • Run the following command to create a Next.js project:
      npx create-next-app@latest managehub-frontend
    • Select TypeScript when prompted.
  2. Install TailwindCSS

    • Install Tailwind and its dependencies:
      npm install tailwindcss postcss autoprefixer
    • Initialize Tailwind:
      npx tailwindcss init -p
    • Configure tailwind.config.js with the correct content paths.
  3. Install Lucide Icons

    • Install Lucide React for icons:
      npm install lucide-react
  4. Install Form Handling & Validation

    • Install formik and yup for form validation:
      npm install formik yup
  5. Install API Handling & State Management

    • Install axios for making API requests:
      npm install axios
    • Install react-query (TanStack Query) for efficient API data fetching and caching:
      npm install @tanstack/react-query
    • Install zustand for state management:
      npm install zustand
  6. Verify Installation

    • Run the development server:
      npm run dev
    • Ensure everything works correctly without errors.

Expected Outcome

A fully functional Next.js 14 setup with TailwindCSS, Lucide icons, Formik/Yup for validation, Axios for API requests, React Query for data fetching, and Zustand for state management.

Additional Notes

  • Follow best practices when structuring the project.
  • Ensure the dependencies are added to package.json.
  • Provide a short setup guide in the README.

  1. Include an ETA
  2. Your TG handle
  3. Join the telegram group: https://t.me/managehubOD

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions