Instructions: Consumindo APIs, Testando requisições com bypass, Autenticação JWT and Token refresh.
- [GET] /
- ReposFindWeb.UsersController :index
- [POST] /sigin
- ReposFindWeb.UsersController :sign_in
- [GET] /signout
- ReposFindWeb.UsersController :sign_out
- [GET] /current_token
- ReposFindWeb.UsersController :current_token
- [GET] /:id
- ReposFindWeb.UsersController :show
- [POST] /
- ReposFindWeb.UsersController :create
- [PATCH] /:id
- ReposFindWeb.UsersController :update
- [PUT] /:id
- ReposFindWeb.UsersController :update
- [DELETE] /:id
- ReposFindWeb.UsersController :delete
- [GET] /
- ReposFindWeb.RepositoriesController :index
- [GET] /:username
- ReposFindWeb.RepositoriesController :show
Tests: 9 total
# Intall dependencies
mix deps.get
# Start PostgreSQL service
service postgresql start
# Reset migrations
mix ecto.reset
MIX_ENV=test mix ecto.reset
# View app routes
mix phx.routes
# Start Phoenix server
mix phx.server
# Intall dependencies
mix test
# Check coverage of tests
mix test --cover
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- 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