Sign inSign up

apieprogrammer/apie

By apieprogrammer

•Updated 3 months ago

Only create domain objects and you get a fully working admin panel and rest API with OpenAPI spec.

Image
Languages & frameworks
Web servers
Content management system
0

3.7K

apieprogrammer/apie repository overview

A Docker image set up to run an Apie project. With Apie I can easily make a Rest API by just providing domain objects split up nicely between domains. It's a domain driven design first approach. Apie uses Laravel or Symfony in the background. This is only useful information in case you want to add your own non-Apie code in a project.

⁠Most common use case

The most common use case is using it with docker-compose.yaml and mounting a domains folder like this:

services:
  app:
    image: apieprogrammer/apie:symfony-cli-8.3
    container_name: myapp
    environment:
      APP_ENV: production
    ports:
      - "8000:8000"
    volumes:
      - ./domains:/app/domains
    networks:
      - application

networks:
  application:

Going to http://localhost:8000⁠ will show you the application.

Now if you have a domains folder you are free to add your own domains to it.

⁠Creating first domain object

The easiest way to make a domain object is by running the terminal inside the container:

For Symfony containers:

docker exec myapp php bin/console apie:create-domain-object -b example Test

For Laravel containers:

docker exec myapp php artisan apie:create-domain-object -b example Test

This will create a test entity in the example domain.

Tag summary

Content type

Image

Digest

sha256:858279f02…

Size

331 MB

Last updated

3 months ago

docker pull apieprogrammer/apie:symfony-cli-8.4