update getting-started

This commit is contained in:
MaolinPan 2021-04-27 08:25:35 +08:00
parent 4b6b5476c5
commit e4de538cd9
5 changed files with 1021 additions and 2 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
.vs/slnx.sqlite Normal file

Binary file not shown.

5
app/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM node:12-alpine
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "/app/src/index.js"]

View File

@ -53,8 +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
item={item}