Skip to content
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

[EPIC] Create a Phoenix 1.5.3 Todo List App #36

Closed
2 tasks done
nelsonic opened this issue May 20, 2020 · 35 comments
Closed
2 tasks done

[EPIC] Create a Phoenix 1.5.3 Todo List App #36

nelsonic opened this issue May 20, 2020 · 35 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented May 20, 2020

Now that we have shipped auth and auth_plug,
We can build a far more realistic Todo List Tutorial
that will act as a showcase for both the simplicity of Phoenix
and the ease with which Auth can be added to any app using auth_plug.

My reasoning for prioritising this Tutorial is that it forms the basis for our App.
First and foremost our App is a "Todo List with integrated Time Tracking"
see: https://github.com/dwyl/product-roadmap
So if we can show people the Todo List part as a complete beginner's tutorial
with code that will be very similar to our App, then we can successfully "on board" people into contributing to our App. 💡

Todo

PR in progress awaiting-review: #35

@nelsonic
Copy link
Member Author

nelsonic commented May 21, 2020

The update to Phoenix 1.5.1 is underway in dwyl/phoenix-chat-example#39 🧑‍💻
I will be pairing with @iteles on that PR for 1h/day in the evenings. 👩‍❤️‍👨

Meanwhile creating a brand new tutorial from scratch is a distinct/independent task.
I feel that this is important for showcasing how simple Phoenix and our Auth is!
So I'm going to work on it today.

@nelsonic
Copy link
Member Author

todo-list-phoenix-default-ui-new-item

todo-list-phoenix-default-ui-show-item

todo-list-phoenix-default-ui-show-items-list

@nelsonic
Copy link
Member Author

@nelsonic
Copy link
Member Author

nelsonic added a commit that referenced this issue May 22, 2020
@nelsonic
Copy link
Member Author

edit-as-html

@nelsonic
Copy link
Member Author

Once the HTML for the <section> is editable, select it and copy-paste it.
todomvc

todomvc-html-editable-copy

@nelsonic
Copy link
Member Author

TodoMVC without the TodoMVC styles:
before-adding-css

@nelsonic
Copy link
Member Author

With the layout template saved, your /items page should now look like this:
items-with-todomvc-css

@nelsonic
Copy link
Member Author

Now that we are rendering the actual items it looks like this:
image

@nelsonic
Copy link
Member Author

If you run the Phoenix App now and visit http://localhost:4000/items/new you will see the single :text input field:
image
However if you attempt to submit it you will see an error.

@nelsonic
Copy link
Member Author

Footer hidden when there are no items:
phx-todo-footer-hidden

@nelsonic
Copy link
Member Author

Default home page:
page_template

@nelsonic
Copy link
Member Author

Todo app on Home page:
todo-app-on-homepage

@nelsonic
Copy link
Member Author

Heroku version:
todo-app-heroku-version

@nelsonic
Copy link
Member Author

Final version running on localhost:
phoenix-todo-list-on-localhost

@nelsonic
Copy link
Member Author

PR is ready to review: #35

@nelsonic nelsonic assigned SimonLab and unassigned nelsonic May 29, 2020
@nelsonic
Copy link
Member Author

Decided that Ctx was more confusing than just calling the Context "Todo" so re-named it:
image

nelsonic added a commit that referenced this issue May 30, 2020
@nelsonic nelsonic changed the title [EPIC] Create a Phoenix 1.5.3 Todo List App with Auth [EPIC] Create a Phoenix 1.5.3 Todo List App Jun 1, 2020
@nelsonic
Copy link
Member Author

nelsonic commented Jun 3, 2020

PR #35 reviewed, improved and merged by @SimonLab 🚀

@nelsonic nelsonic closed this as completed Jun 3, 2020
HotategaiDev added a commit to HotategaiDev/phoenix-todo-list-tutorial- that referenced this issue Dec 4, 2023
HotategaiDev added a commit to HotategaiDev/phoenix-todo-list-tutorial- that referenced this issue Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants