Directus Nuxt Migrations

screenshot of Directus Nuxt Migrations

A code-first config tool for Directus and Nuxt. Declare modular database schemas within Nuxt and migrate them to Directus.

Overview

Directus Nuxt Migrations presents an innovative approach to managing database schemas through a code-first configuration tool that integrates seamlessly with both Directus and Nuxt. This solution is designed to simplify the process of defining, migrating, and managing modular database schemas directly within a Nuxt application. Although currently in proof-of-concept status, this tool has already shown its potential by being utilized in production environments, making it a promising option for developers looking to enhance their workflow.

As the development of this tool continues, it comes with an opportunity for feedback and collaboration, inviting developers to engage and contribute. It's clear that Directus Nuxt Migrations aims to streamline database management while adhering to modern development practices.

Features

  • Code-first Config: Define your database schema within the Nuxt app, supporting collections, fields, flows, relations, permissions, and translations.
  • Migration Tool: Effortlessly push migrations from Nuxt to Directus utilizing the Directus SDK, simplifying the migration process.
  • Versioning: Create and manage new versions of your schema, allowing flexible updates to the database.
  • Typesafe: Leverage the Directus SDK for type checking, ensuring your code remains robust and maintainable.
  • Modularity: Separate schemas into modular extensions using Nuxt layers, promoting a structured and organized approach to schema management.
  • Example Data Creation: Generate example data for testing and demonstration purposes within your extensions.