GithubHelp home page GithubHelp logo

lerooks / subscription-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 53 KB

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

License: MIT License

Shell 4.23% PHP 92.53% Dockerfile 3.24%
doctrine doctrine-orm docker docker-mysql docker-nginx docker-php docker-php-nginx symfony symfony5

subscription-api's Introduction

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

subscription-api's People

Contributors

lerooks avatar

Watchers

 avatar

Forkers

alex3319

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.