Art Module
Generating the art module
Create module
This creates a new codegen module
Take a look at the project structure under libs/art-gen/src
Edit model file
In this step, similar to the music module, we will create a simple model for the art domain, consisting of Artist and Artwork entities.
For the complete list of model properties check the Logosphere Modelling documentation.
Modify libs/art-gen/src/art.model.ts
file:
Generate art module API
Build & test art module API
Re-generate docker-compose and .env
To add Art application to existing stack, docker-compose generator need to be called again.
Existing .env
and docker-compose.yaml
will be overridden. If you made some changes in previous set you have to configure it again
Run up the art service
Similar like before the service can be run as part of stack
Or can be serve as standalone container
Test API endpoint
Go to http://localhost:3001/graphql
Check schema that it matches the art module
Create an artwork
Mutation:
Variables:
Output:
Last updated