This commit is contained in:
MakerOMagic
2022-12-11 19:30:42 -05:00
parent b4d6426abc
commit 22d5e6ddaf
5 changed files with 16 additions and 1 deletions

0
app/No Normal file
View File

0
app/cut Normal file
View File

0
app/docker Normal file
View File

15
app/docker.notes Normal file
View 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

View File

@@ -53,7 +53,7 @@ function TodoListCard() {
<React.Fragment>
<AddItemForm onNewItem={onNewItem} />
{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 => (
<ItemDisplay