Todo App with Elixir, Phoenix, Absinthe(ServerSide GraphQL), React and Apollo-Client(ClientSide GraphQL).
Need following thing to install in Computer
- Installed Elixir 1.10.4
- Installed Erlang OTP 23 or more. You will find the description of installing Erlang in Elixir Installation
- Installed Phoenix Framework 1.5.3
- Installed PostgreSQL
- Installed Node.js
- Installed inotify-tools (for linux users)
- If any of package download or install won't match with your destro. Search online for better way.
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create new .env file with
cp .env.example .env
- Generate
SIGNING_SALT
value by runningmix phx.gen.secret 32
- Put the
DB_USER
,DB_PASSWORD
andSIGNING_SALT
values in.env
- Load the
.env
values withsource .env
- Create and migrate your database with
mix ecto.setup
- Install Node.js dependencies with
npm install
inside theassets
directory or remain in project dir and runnpm install --prefix assets
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
You can go to localhost:4000/api
for checking graphql playground and check graphql query and mutation
Create, Update, Delete TodoItem.
Implement User and User Auth