This project is for study elixir, phoenix, postgres, ecto, graphql and anouthers technologies.
And is builded with:
- Elixir
- Phoenix
- Jason
- Plug
- GraphQL
- Ecto
- Docker-Compose
First you need clone of the project to your computer:
With https:
git clone https://github.com/jpbrab0/blog-engine-elixir.gitWith ssh:
git clone git@github.com:jpbrab0/blog-engine-elixir.gitWith Github CLI:
gh repo clone jpbrab0/blog-engine-elixirTo setup the database you need installed on your computer docker-compose and docker.
If you have installed it on your computer, you can run this command to create database with docker-compose:
docker-compose up -d- First you need:
- Install dependencies with
mix deps.get - Create and migrate your database with
mix ecto.setup - Start Phoenix endpoint with
mix phx.server
- Install dependencies with
Yet not have none route, because this api is builded with graphql, but you can make graphql query to get the data.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix
- View Authors
- View a single Author
- Create Authors
- Edit Authors
- Delete Authors
- View Posts
- View a single Post
- Create Posts
- Edit Posts
- Delete Posts
- Creating Migrations