SekmSet / MicroService

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My micro services

Tools


APP (slim-skeleton)


  • Slim 4.5.*
  • Eloquent ORM
  • JWT

API


  • NodeJS
  • MongoDB
  • Express

Folders structure

  • Micro service with Slim : slim-skeleton
  • Micro service with 3F :
  • Micro service in NodeJS : api_express

Steps of instalations

slim-skeleton

  • Install a slim-skeleton
  • Install my ORM : Eloquent
  • Configure my DB name
  • Create my modeles

Modeles

slim-skeleton

  • User

    • id
    • last_name
    • first_name
    • username (unique)
    • email (unique)
    • phone (unique)
    • created_at
    • updated_at
  • Message

    • id
    • id_userS (id of user who send the message)
    • id_userD (id of user who receive the message)
    • content
    • created_at
    • updated_at

Relationship

An user can send (or receive) messages to any users A message can have only one sender but several receivers, but a message can not have several senders

CRUD

Create routes and CRUD of each modeles

  • Create (post)
  • Read (get)
    • One
    • All
  • Update (put)
  • Delete (delete)

About


Languages

Language:PHP 93.3%Language:JavaScript 5.4%Language:Dockerfile 0.7%Language:Shell 0.5%