Code Monkey home page Code Monkey logo

artist-management's Introduction

Artist Management

Celebrity management API with database update logs feature.

Requirements

  • Docker (>= 18.x)
  • Docker Compose (>= 1.20)
  • Make

Technology Stack

  • Composer 2.0.x
  • PHP 7.4
  • Symfony 4.4
  • PostgreSQL 13.2
  • Nginx 1.x

Development Setup

  • Init docker containers
:~$ make up
  • Install dependencies
:~$ make composer-install
  • Init database (drop and create database. execute migrations )
:~$ make database-init
  • Generate JWT SSL keys
:~$ make jwt-generate-keypair
  • The following are the user information to login and test the api (Security section at API docs)
-----------------------------------------------------
ROLE_ADMIN
-----------------------------------------------------
username: admin
password: admin
-----------------------------------------------------

-----------------------------------------------------
ROLE_USER
-----------------------------------------------------
username: user_1, user_2, user_3
password: passwd123
-----------------------------------------------------

Documentation

About Database Logs Feature

The database logs feature was implemented using the Doctrine Lifecycle Subscribers because the postUpdate event allow get the required information (entity, changes and security users) in a single place.

In other hand, there are some pitfalls with this implementation:

  • The subscriber resolve all the information and in case it fails, the entire process fails. (i.e update a celebrity)
  • The logs data is stored in the same database where the changes are performed.

A way to deal with this is try to use some queue to process the subscriber data afterwards. Also, should be good move all the logs process (create, list etc) into a microservice.

Contributors

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.