-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From Hapi.js to Elixir/Phoenix #104
Comments
I've also just noticed the Phoenix application has been created with the name Line 6 in 430bc16
We can make it more specific and rename (or recreate the project) with the name |
Trying to deploy the new Phoenix labels app on Fly.io by following https://fly.io/docs/getting-started/elixir/ I'm not sure which organization to select (or if we need to create a new one), I'll need to read a bit more about Fly organization first |
@SimonLab good point on only needing |
First "dummy" version deployed on Fly.io: https://labels.fly.dev/
Would you like to setup a Postgresql database now? Yes
For pricing information visit: https://fly.io/docs/about/pricing/#postgresql-clusters
Select configuration: Development - Single node, 1x shared CPU, 256MB RAM, 1GB disk @nelsonic feel free to remove the app or the postgres as I'm not sure if there will be more cost added by the labels app. ? Would you like to deploy now? Yes
Deploying labels I'm now reading the continuous deployment documentation: https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/ |
Continuous deployment done with the following commit: b6814dc |
I'm adding elixir-auth-github as we only want Github for authentication and we can manage the scope to use when using the user token with the Github API to create the labels (see #104 (comment)) I'm currently creating an authentication module Plug to manage login/logout, see https://hexdocs.pm/phoenix/plug.html#module-plugs |
The Phoenix application is now deployed at https://labels.fly.dev/ |
Great work @SimonLab 🚀 Thank you! 🙌 |
As mention in #94 we want to move the project to Elixir/Phoenix to make it easier to maintain and fix bugs.
The following branch already contains the initial work to create a new Phoenix application
Update gitignore to make sure to remove the
deps
folder.I don't think this project will use any of the emails, dashboard, liveview, gettext or ecto features. We could create the new Phoenix application with the following flags: `mix phx.new labels --no-mailer --no-ecto --no-dashboard --no-live --no-gettext
see:
However this step is not required and we might end up using at least the database later on: Update labels to the latest Heroku stack by 1 November 2020 #94 (comment)
Once the Phoenix project is initialized we can deploy it to Fly.io and use continuous deployment to add features.
Add Github authentication using the Auth app:We want to make sure that only Github authentication is used as we need the Github token for API requests.
Use elixir-auth-github for authentication
The text was updated successfully, but these errors were encountered: