Skip to content

mvessuri/next-for-drupal

Repository files navigation

Next.js for Drupal Demo

This is a simple demo for building your site with Next.js and Drupal. It demonstrates how to integrate a Next.js app with a Drupal backend to create a fast and flexible website.

How to use

To use this demo, follow these steps:

  1. Clone the repository to your local machine.
  2. Copy the .env file to .env.local and update the environment variables to match your Drupal backend.
  3. Install the dependencies by running yarn install.
  4. Start the development server by running yarn dev.
  5. Open your browser and navigate to http://localhost:3000 to view the demo.

You can also use yarn preview to start the development server with preview mode enabled.

GitHub Copilot: Thank you for the correction. Here's an updated version of the README file:

Next.js and Drupal Integration Demo

This is a simple demo for building your site with Next.js and Drupal. It demonstrates how to integrate a Next.js app with a Drupal backend to create a fast and flexible website.

How to use

To use this demo, follow these steps:

  1. Clone the repository to your local machine.
  2. Copy the .env file to .env.local.
  3. Install the dependencies by running yarn install.
  4. Start the development server by running yarn dev.
  5. Open your browser and navigate to http://localhost:3000 to view the demo.

You can also use yarn preview to start the development server with preview mode enabled. By coping the provided .env file the Next.js app will connect to an existing demo Drupal backend. If you want to use your own, update the environment variables to match your Drupal backend

Technologies Used

This demo uses the following technologies:

License

This demo is licensed under the MIT License. See the LICENSE file for details.