arkod_wp_core 0.0.4+1 copy "arkod_wp_core: ^0.0.4+1" to clipboard
arkod_wp_core: ^0.0.4+1 copied to clipboard

ARKOD WordPress core library providing models, utilities and features shared by ARKOD WordPress toolkit modules.

example/main.dart

// ignore_for_file: unused_local_variable

import 'package:arkod_wp_core/arkod_wp.dart';

void main() {
  final engine = Engine(
    id: 1,
    createdAt: DateTime.now(),
    isInitialized: true,
    name: 'local',
    host: 'portainer.arkod-wp.localhost',
    type: EngineType.portainer,
    endpoints: [
      Endpoint(
        id: 1, // Provided by Portainer
        name: 'local',
        url: 'unix:///var/run/docker.sock', // Provided by Portainer
        type: EndpointType.docker,
        status: EndpointStatus.up,
      )
    ],
    apiKey: 'secret-api-key-generated-by-initialization',
  );

  final website = Website(
    id: 1,
    createdAt: DateTime.now(),
    name: 'my-website',
    title: 'My website',
    adminUsername: 'admin',
    adminPassword: 'password',
    adminEmail: 'admin@my-website.com',
    postsUrlStructure: '/blog/%postname%/',
    dbRootPassword: 'password',
    dbUser: 'admin',
    dbPassword: 'password',
    dbTablesPrefix: 'wp_',
    environments: [
      Environment(
        id: 0,
        createdAt: DateTime.now(),
        websiteId: 1,
        engineId: 1,
        endpointId: 1,
        stackId: 123, // Provided by Portainer
        websiteUrl: 'https://my-website.arkod-wp.localhost',
      ),
    ],
  );
}
0
likes
130
points
32
downloads

Documentation

API reference

Publisher

verified publisherarkod.fr

Weekly Downloads

ARKOD WordPress core library providing models, utilities and features shared by ARKOD WordPress toolkit modules.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

freezed_annotation, json_annotation, postgres

More

Packages that depend on arkod_wp_core