Implementing this architecture :
First things first :
- Elixir/Erlang
- After installing Elixir, you need to install hex :
$ mix local.hex - Overmind (Process manager for Procfile-based applications and tmux)
- You need PostgreSQL
After cloning this repo, your need to :
- Go to Rest API :
cd rest - Install dependencies :
mix deps.get
- Go to Rest API :
cd api - Install dependencies :
mix deps.get - Setup database and run seeds :
mix ecto.setup
- At the root folder :
$ overmind start - Open your browser on GraphiQL :
http://0.0.0.0:4000/graphiql
(See REST-API http://0.0.0.0:8880/users/)
query {
authors {
id
name
age
}
}query {
posts {
id
title
description
}
}mutation CreatePost {
createPost(title: "Second", description: "We're off to a great start!") {
id
title
}
}query {
posts {
id
title
description
author {
name
age
}
}
}