Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo

UI

Todo demo

Install dependencies with mix deps.get

Run locally with mix phx.server

Business Rules

It is not permissible to save an item with empty description

Priority must only allow the values (Low, Medium and High)

Once an item is completed, it can not be unchecked and marked as not completed

Tests

Run Tests mix test

Create with valid description, priority, is_completed

Update with valid description, priority, is_completed

Create with invalid description, priority, is_completed

Update with invalid description, priority, is_completed

Create database and schema for the following table and fields

Create database with initdb todo_dev

Start database with pg_ctl -D todo_dev start

Stop database with pg_ctl -D todo_dev stop

Create postgres user allowed to create databases with createuser -d postgres

Create database with with mix ecto.create

Generate controller, views, and context with mix phx.gen.html Todos Todo_repo todos description:string priority:string is_completed:boolean

Migrate your database with mix ecto.migrate

About

Todo application using Elixir and Phoenix Live View

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages