todo app
This commit is contained in:
0
app/docker
Normal file
0
app/docker
Normal file
15
app/docker.notes
Normal file
15
app/docker.notes
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#build commands
|
||||||
|
docker build -t getting-started .
|
||||||
|
|
||||||
|
#run commands
|
||||||
|
docker run -dp 3000:3000 getting-started
|
||||||
|
|
||||||
|
|
||||||
|
#add named data file
|
||||||
|
docker volume create todo-db
|
||||||
|
|
||||||
|
#make image with shared storage
|
||||||
|
docker run -dp 3000:3000 -v todo-db:/etc/todos getting-started
|
||||||
|
|
||||||
|
#to fine file locations
|
||||||
|
docker volume inspect
|
@@ -53,7 +53,7 @@ function TodoListCard() {
|
|||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<AddItemForm onNewItem={onNewItem} />
|
<AddItemForm onNewItem={onNewItem} />
|
||||||
{items.length === 0 && (
|
{items.length === 0 && (
|
||||||
<p className="text-center">No items yet! Add one above!</p>
|
<p className="text-center">You have no todo items yet! Add one above!</p>
|
||||||
)}
|
)}
|
||||||
{items.map(item => (
|
{items.map(item => (
|
||||||
<ItemDisplay
|
<ItemDisplay
|
||||||
|
Reference in New Issue
Block a user