Explicit Architecture POC

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

archtectural concepts based on Explicit Architecture

Resorces API - reference book

POST /notification/subscribe POST /notification/send/all POST /notification/send/:push_token

Local configs

  • Run infra:
     docker-compose up -d
  • Database migrations
     mix ecto.migrate
  • Run server
    mix phx.server

Reference to build new modules

Run runing tests

 mix test ./test/**/*.ex

Run on docker-composer

Build image

docker build -t app/expo-project .

Run container

docker run -p 4000:4000 app/expo-project

Docker composer command

docker-compose up

or

docker-compose up -d

ROADMAP

  • POST /notification/subscribe
  • DELETE /notification/subscribe
  • POST /notification/send/all
  • POST /notification/send/:push_token
  • gRPC impl
  • Create flavors to dev and prod