0.3.3 • Published 6 months ago

medusa-plugin-ultimate v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Medusa Plugin Ultimate

Thumbnail

The Medusa Plugin Ultimate is a powerful tool that allows developers to easily add a user interface to entities marked with a decorator. With this plugin, you can seamlessly create, edit, view, and delete documents associated with these entities, and expose them through a specific route for your store.

Documentation

See Documentation.

Contact

Discord: @raiden56 ID:423897604330618883

Usage

Installation

npm i medusa-plugin-ultimate

Configuration

this env variables are required on the admin: MEDUSA_ADMIN_BACKEND_URL or BACKEND_URL

// medusa-config.js

const plugins = [
  /** @type {import('medusa-plugin-ultimate').Options} */
  {
    resolve: "medusa-plugin-ultimate",
    options: {
      enableUI: true,
      backendUrl: process.env.BACKEND_URL || "http://localhost:9000",
    },
  },
];

// ...

Final Step

Now create your entities and don't forget to add migrations for them, after that the UI will automatically be generated for your entitiy.

// example:
// src/models

import { BeforeInsert, Column, Entity } from "typeorm";

import { BaseEntity } from "@medusajs/medusa";
import { generateEntityId } from "@medusajs/utils";

import {
  UltimateEntity,
  UltimateEntityField,
  UltimateEntityFieldTypes,
} from "medusa-plugin-ultimate/dist/index";

@Entity()
@UltimateEntity({})
export class BlogPost extends BaseEntity {
  @Column({ type: "varchar", nullable: false })
  @UltimateEntityField({
    type: UltimateEntityFieldTypes.STRING,
  })
  title: string;

  @Column({ type: "varchar", nullable: true })
  @UltimateEntityField({
    type: UltimateEntityFieldTypes.MARKDOWN,
  })
  content: string;

  @BeforeInsert()
  private beforeInsert(): void {
    this.id = generateEntityId(this.id, "blog-post");
  }
}

Documentation

See Documentation.

Examples

Features

  • Automatically Create UI For Entities: The Medusa Plugin Ultimate seamlessly integrates with your entities. By simply marking an entity with a decorator, you can enable a user interface for it in the Medusa dashboard.

  • Create, Edit, View, Delete: Once your entity has a UI, you can easily perform essential CRUD operations. Create new documents, edit existing ones, view their details, and delete them with ease.

  • Customizable UI: The UI generated by this plugin is customizable, allowing you to tailor it to your specific requirements. You can control the appearance and behavior of the UI elements.

  • Route Exposition: In addition to the dashboard integration, this plugin exposes your entity documents via a specific route. This makes it easy for your store to interact with these documents programmatically.

0.3.3

6 months ago

0.3.2

6 months ago

0.3.1

6 months ago

0.3.0

6 months ago

0.2.10

6 months ago

0.2.9

6 months ago

0.2.8

6 months ago

0.2.7

6 months ago

0.2.6

6 months ago

0.2.5

6 months ago

0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

7 months ago

0.1.24

7 months ago

0.1.23

7 months ago

0.1.22

7 months ago

0.1.21

7 months ago

0.1.20

7 months ago

0.1.19

7 months ago

0.1.18

7 months ago

0.1.17

7 months ago

0.1.16

7 months ago

0.1.5

7 months ago

0.1.4-beta.13

7 months ago

0.1.4-beta.12

7 months ago

0.1.4-beta.11

7 months ago

0.1.4-beta.10

7 months ago

0.1.4-beta.9

7 months ago

0.1.4-beta.8

7 months ago

0.1.4-beta.7

7 months ago

0.1.4-beta.6

7 months ago

0.1.4-beta.5

7 months ago

0.1.4-beta.4

7 months ago

0.1.4-beta.3

7 months ago

0.1.4-beta.2

7 months ago

0.1.4-beta.1

7 months ago

0.1.4-beta.0

7 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago