Art Module
Generating the art module
Create module
pnx g @logosphere/sdk:module --name artEdit model file
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Entity, Prop } from '@logosphere/decorators';
@Ent('artist')
export class Artist {
@Prop({
examples: ['Beeple', '3LAU', 'WhisBe'],
})
name: string;
}
@Ent('artwork')
export class Artwork {
@Prop({
examples: ['The First 5000 Days', 'All Night Long', 'Gold Gummy Bear'],
})
title: string;
@Prop({
examples: ['Most famous Beeples work', 'Best work', 'It is about a gold gummy bear'],
})
description: string;
@Prop({ type: () => Artist, index: false })
author: Artist;
}
Generate art module API
Build & test art module API
Re-generate docker-compose and .env
Run up the art service
Test API endpoint
Create an artwork
Last updated