爬取银卡优惠信息生成接口。restful, graphql
- 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
docker run --name phoenix-postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -p 5501:5432 -d postgres
docker run -d -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:latest
mix hex.info
mix hex.config
mix local.hex
mix archive.install hex phx_new
mix phx.new credit_stake --no-html --no-assets --binary-id
mix deps.get
rm -rf ~/.hex
HEX_HTTP_CONCURRENCY=1 HEX_HTTP_TIMEOUT=1200 mix deps.get
mix ecto.create
MIX_ENV=test mix ecto.create
mix phx.gen.json Database Bank banks name:string:unique
mix ecto.migrate
mix ecto.rollback
mix ecto.drop
mix ecto.gen.migration create_articles
mix ecto.gen.migration add_publish_at_to_article
mix run priv/repo/seeds.exs
mix phx.server
iex -S mix phx.server
MIX_ENV=prod mix phx.server
mix phx.gen.release --docker
mix phx.gen.secret
mix phx.digest
docker build . -t credit_stake
docker run --rm --name credit_stake_1 credit_stake
services/crawler
mix format
mix credo
mix credo list
http://127.0.0.1:4000/dashboard
mix phx.swagger.generate
- restful api
- graphql api
- defprotocol
- defimpl
- defmacro
- https://hexdocs.pm/phoenix/deployment.html