Skip to content

REST API made with PHP 7.2.5, Symfony 5, Doctrine, NGINX, MYSQL, DDD, SOLID and Hexagonal Architecture.

License

Notifications You must be signed in to change notification settings

Lerooks/subscription-api

Repository files navigation

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

About

REST API made with PHP 7.2.5, Symfony 5, Doctrine, NGINX, MYSQL, DDD, SOLID and Hexagonal Architecture.

Topics

Resources

License

Stars

Watchers

Forks