Skip to content

Latest commit

 

History

History
85 lines (65 loc) · 1.65 KB

README.md

File metadata and controls

85 lines (65 loc) · 1.65 KB

Subscription API

✏️ About

REST API for pokemon tournament persistence.

Made with Symfony 5, Doctrine, Docker, NGINX, MySQL, DDD, SOLID and Hexagonal Architecture.

⚙️ Running locally

Install dependencies

composer install

Create database using the local mysql container

create database tournament;

use tournament;

create table subscriptions
(
	id int auto_increment,
	name varchar(255) null,
	cpf varchar(255) null,
	phone varchar(255) null,
	email varchar(255) null,
	favorite_pokemon varchar(255) null,
	note varchar(255) null,
	constraint subscriptions_pk
		primary key (id)
);

create unique index subscriptions_cpf_uindex
	on subscriptions (cpf);

create unique index subscriptions_email_uindex
	on subscriptions (email);

Start server

docker-compose up

📁 Structure

├── src
    ├── Tournament
    │   ├── Application
    │   │   ├── Command
    │   │   └── Service
    │   │
    │   ├── Domain
    │   │   ├── Entity
    │   │   ├── Repository
    │   │   └── Exception
    │   │
    │   ├── Infrastructure
    │   │   └── Persistence
    │   │       └── Doctrine
    │   │           ├── ORM
    │   │           └── Repository
    │   │
    │   └── Presentation
    │       └── Http
    │           └── Action
    │
    └── Core
        └── Presentation
            └── Http
                └── Action

👤 Author