https://github.com/shannon-kioko/learn-elixir
https://github.com/shannon-kioko/learn-elixir
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shannon-kioko/learn-elixir
- Owner: Shannon-Kioko
- Created: 2024-09-04T08:10:07.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T15:05:03.000Z (9 months ago)
- Last Synced: 2025-01-09T06:45:22.977Z (5 months ago)
- Language: Elixir
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todomvc
To install phoenix:
* `mix archive.install hex phx_new`
To generate the Phoenix Project without Brunch (to build assets)
* `mix phx.new todomvc --no-assets`
### Development Process
* `mix phoenix.gen.html TaskManagement Task tasks description:string status:string` to generate a model, controller, view and templates for the task model
* **Schema** defines the way your application interacts with the database.
* A **migration** is responsible for creating or modifying the structure of your database. You run migrations once with `mix ecto.migrate` after which the database schema is altered.
* Add valid and invalid attributes to the tests of the model and controller.
* `lib/todomvc` hosts all business logic and business domain. Typically interacts with the db it is the **Model** in MVC.
* `lib/todomvc_web` **View** and **Controller** in MVC exposes business domain to the world.
* `priv` keeps all necessary resources.### To start your Phoenix server:
* Run `mix setup` to install and setup dependencies
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
## Learn more
* Official website: https://www.phoenixframework.org/
* Guides: https://hexdocs.pm/phoenix/overview.html
* Docs: https://hexdocs.pm/phoenix
* Forum: https://elixirforum.com/c/phoenix-forum
* Source: https://github.com/phoenixframework/phoenix
# Learn-Elixir