Journal
Mix.install([
{:kino, github: "livebook-dev/kino", override: true},
{:kino_lab, "~> 0.1.0-dev", github: "jonatanklosko/kino_lab"},
{:vega_lite, "~> 0.1.4"},
{:kino_vega_lite, "~> 0.1.1"},
{:benchee, "~> 0.1"},
{:ecto, "~> 3.7"},
{:math, "~> 0.7.0"},
{:faker, "~> 0.17.0"},
{:utils, path: "#{__DIR__}/../utils"},
{:tested_cell, git: "https://github.com/BrooklinJazz/tested_cell"}
])
Navigation
Create A New Mix Project
Create a new project in the projects
folder called journal
using the command line.
mix new journal --sup
Evaluate the cell below to ensure you have correctly created the project.
Utils.feedback(:created_project, "todo_list")
Configure your mix project with Ecto by following the Ecto Getting Started guide.
Journal
Now that we have a mix project with Ecto, you will create a journal application.
You will be able to create many different journals. Each journal will have many entries.
classDiagram
class Journal {
title: :string
description: :text
entries: [Entry]
}
class Entry {
title: :string
content: :text
journal: Journal
}
WIP
Commit Your Progress
Run the following in your command line from the project folder to track and save your progress in a Git commit.
$ git add .
$ git commit -m "finish journal exercise"