Intended Link, built in Elixir Phoenix.
Go to file
Silas 395e498e30
add back in buildpacks but take out releases and netrc
2021-11-26 20:33:50 -05:00
assets implement just for you pages with phoenix-react 2021-11-26 20:04:45 -05:00
config add github oauth config to prod 2021-11-26 20:20:34 -05:00
lib implement just for you pages with phoenix-react 2021-11-26 20:04:45 -05:00
priv formatting and add for/you routes 2021-11-18 19:44:25 -05:00
test get started on route for creating links, dividing steps into components 2021-08-19 22:35:12 -04: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 elixir buildpack 2021-11-26 20:22:17 -05:00
mix.exs implement just for you pages with phoenix-react 2021-11-26 20:04:45 -05:00
mix.lock implement just for you pages with phoenix-react 2021-11-26 20:04:45 -05:00
phoenix_static_buildpack.config add phoenix static buildpack 2021-11-26 20:31:23 -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"