Directus: Instantly Transform Your Database into a Backend Management System

a year ago

What is Directus?

Simply put, Directus is a "visualization tool for databases." Imagine this:

  • You have a MySQL database storing user information, articles, product data, etc.
  • After installing Directus, you immediately get a modern management interface
  • Perform CRUD operations without writing code, with automatically generated REST and GraphQL APIs
  • Non-technical staff can easily manage data

https://appstore.lazycat.cloud/#/shop/detail/ink.akawa.ety001.directus

Getting Started Guide

After the application is installed, open the homepage and log in directly using the LazyCat account.

image.png

After authorization, you will enter the main page.

image.png

It supports Chinese, which can be adjusted in the settings.

image.png

In the 【Appearance】 section, you can modify details like the theme, logo, etc.

image.png

Return to the homepage and create a new Collection.

image.png

image.png

Set Field Types: Text, Number, Date, Image, Relationship, etc.

image.png

Choosing the right field type is crucial:

  • Use Text for short text, Textarea for long text
  • Use Image for pictures; it automatically handles thumbnails

Permission Settings

Create Roles (e.g., Editor, Customer Service, Administrator)

image.png

image.png

Set permissions for each role.

image.png

Create users and assign roles.

image.png

image.png

Flow Automation (Flows)

This feature is very powerful, allowing you to set up:

  • Sending email notifications when data changes
  • Automatic image compression after upload
  • Scheduled tasks to clean up expired data

image.png

image.png

Once everything is configured, it's like having your own backend system. Directus will automatically create the following API endpoints for you to call:

  1. Get all product list (GET):

https://your-directus-url/items/products

  1. Get a specific product (GET):

https://your-directus-url/items/products/{id}

  1. Create a new product (POST):

https://your-directus-url/items/products

  1. Modify a product (PATCH):

https://your-directus-url/items/products/{id}

  1. Delete a product (DELETE):

https://your-directus-url/items/products/{id}

image.png

You don't need to click any "Generate" button. As soon as you save your changes in the "Data Model," the API endpoints are updated synchronously.

Summary

If you are developing a project that requires backend management, whether it's a website, APP, mini-program, or anything else, we recommend trying Directus.

It saves you a significant amount of backend interface development time.

Super easy data management: Non-technical personnel can get started easily.

Complete control over your data: Unlike some platforms with lock-in risks, Directus connects to your own database, so your data remains entirely in your hands.

Author
天天