This is a Next.js application that demonstrates integration with JsonDrop API for managing articles with tags and filtering functionality.
npm install # or pnpm install
.env
file in the root directoryNEXT_PUBLIC_DRUPAL_BASE_URL="http://your-jsonapi-instance"
To start the development server:
npm run dev # or pnpm dev
The application will be available at http://localhost:3000
/
- Home page with article list and tag filtering/articles
- Article listing page/form
- Form page for creating/editing articlesNEXT_PUBLIC_DRUPAL_BASE_URL
- Base URL of your JsonDrop API instanceThe application uses several key dependencies:
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.
If you encounter CORS errors, ensure your JsonDrop API instance is configured to accept requests from your development domain (localhost:3000).
Remember that environment variables prefixed with NEXT_PUBLIC_
are exposed to the browser. Do not include sensitive information in these variables.
To create a production build:
npm run build # or pnpm build
To start the production server:
npm run start # or pnpm start
For issues or questions, please refer to the project documentation or create an issue in the repository.