Intended Link, built in Elixir Phoenix.
Go to file
Silas 5de53e23ea
implement step 2 stuff
2021-12-04 16:57:47 -05:00
.vscode write first test and let changeset errors return error json in controller 2021-12-02 22:45:39 -05:00
assets implement step 2 stuff 2021-12-04 16:57:47 -05:00
config write first test and let changeset errors return error json in controller 2021-12-02 22:45:39 -05:00
lib implement step 2 stuff 2021-12-04 16:57:47 -05:00
priv implement step 2 stuff 2021-12-04 16:57:47 -05:00
test write first test and let changeset errors return error json in controller 2021-12-02 22:45:39 -05:00
.buildpacks add back in buildpacks but take out releases and netrc 2021-11-26 20:33:50 -05:00
.formatter.exs initial commit 2021-08-18 12:37:02 -04:00
.gitignore implement github oauth and display user's name and avatar from it 2021-11-12 20:20:40 -05:00
.tool-versions initial commit 2021-08-18 12:37:02 -04:00
Dockerfile get started on route for creating links, dividing steps into components 2021-08-19 22:35:12 -04:00
README.md better install instructions 2021-11-12 20:26:28 -05:00
deployment.yaml get started on route for creating links, dividing steps into components 2021-08-19 22:35:12 -04:00
elixir_buildpack.config add cache clear 2021-11-26 20:36:32 -05:00
mix.exs implement creation of link on first step in backend 2021-12-01 20:08:22 -05:00
mix.lock implement creation of link on first step in backend 2021-12-01 20:08:22 -05:00
phoenix_static_buildpack.config add cache clear 2021-11-26 20:36:32 -05:00

README.md

Entendu

To start your Phoenix server:

  • (optional) Install 'ASDF' along with the 'Erlang', 'Elixir', and 'Node' plugins
  • (optional) Run asdf install. Now this project will always use the correct erlang/elixir/node/npm versions.
  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Install Node.js dependencies with npm install inside the assets directory
  • Run mix phx.gen.cert to use HTTPS during development, required for OAuth
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Setting up OAuth

Add the OAuth providers you'll be using to the providers array.

use Mix.Config
config :ueberauth, Ueberauth,
  providers: [
    github: {Ueberauth.Strategy.Github, []}
  ]

You'll need to visit each provider's site and set up OAuth. This usually entails creating an OAuth App to generate a client_id, and generating a client_secret. Then create a dev.secret.exs file in your config folder and add your client_id & secret to your provider's ueberauth config.

config :ueberauth, Ueberauth.Strategy.Github.OAuth,
  client_id: "some_client_id",
  client_secret: "some_secret_key"