Skip to content

Instantly share code, notes, and snippets.

@featherart
Last active February 5, 2020 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save featherart/dee7af017b84f4733329176535f46c64 to your computer and use it in GitHub Desktop.
Save featherart/dee7af017b84f4733329176535f46c64 to your computer and use it in GitHub Desktop.
Create a new JSON Phoenix API
# generate a new app in a directory called todos-json-api
# namespaced under ToDosApi, & no html or webpack will scaffolded
mix phx.new todos-json-api --app todos_api --module ToDosApi --no-html --no-webpack
# go into newly created directory
cd todos-json-api
# create the database
mix ecto.create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment