Articles with Tags Filter - Next.js Application

Overview

This is a Next.js application that demonstrates integration with JsonDrop API for managing articles with tags and filtering functionality.

Prerequisites

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install
    # or
    pnpm install
  3. Configure environment variables:

Running the Application

To start the development server:

npm run dev
# or
pnpm dev

The application will be available at http://localhost:3000

Available Routes

Configuration

Environment Variables

Dependencies

The application uses several key dependencies:

Common Pitfalls

API Configuration

Ensure the NEXT_PUBLIC_DRUPAL_BASE_URL environment variable is correctly set to your JsonDrop API instance. Incorrect configuration will result in failed API requests.

CORS Issues

If you encounter CORS errors, ensure your JsonDrop API instance is configured to accept requests from your development domain (localhost:3000).

Environment Variables

Remember that environment variables prefixed with NEXT_PUBLIC_ are exposed to the browser. Do not include sensitive information in these variables.

Building for Production

To create a production build:

npm run build
# or
pnpm build

To start the production server:

npm run start
# or
pnpm start

Support

For issues or questions, please refer to the project documentation or create an issue in the repository.