8000 GitHub - atomgiant/magic_8ball_phoenix: An Elixir Phoenix app that uses the magic_8ball_api.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

An Elixir Phoenix app that uses the magic_8ball_api.

Notifications You must be signed in to change notification settings

atomgiant/magic_8ball_phoenix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elixir Magic8ball Phoenix App

Overview

This repository contains a simple Magic8ball Phoenix app, which uses the Magic 8ball API.

This code is used to highlight elements of building APIs with Elixir using Plug as part of an Elixir talk given to the Triangle Elixir meetup.

Setup

  1. Install the dependencies
mix deps.get
  1. Start the Phoenix server
iex -S mix phoenix.server
  1. Open the app in your browser

http://localhost:4000

  1. Call the Magic8ball shake api to test it:
curl -H 'Content-Type: application/json' "localhost:4000/magic8ball/api/shake"
{"answer":"My sources say no"}%

About

An Elixir Phoenix app that uses the magic_8ball_api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0