Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
neninja committed Apr 24, 2022
0 parents commit 65b04ac
Show file tree
Hide file tree
Showing 15 changed files with 101 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM pandoc/latex:latest

RUN apk add --update --no-cache \
graphviz \
ttf-freefont
5 changes: 5 additions & 0 deletions .docker/docker-compose-pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3"

services:
app:
entrypoint: sh .docker/pdf.sh
13 changes: 13 additions & 0 deletions .docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3"

services:
app:
build:
dockerfile: .docker/Dockerfile
context: ../
working_dir: /book
volumes:
- ./..:/book
ports:
- 3000:3000
tty: true
3 changes: 3 additions & 0 deletions .docker/graphviz.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

dot -Tsvg -O content/*/*.gv
12 changes: 12 additions & 0 deletions .docker/pdf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

sh .docker/graphviz.sh

pandoc -s -N --variable "geometry=margin=1in" \
--metadata-file=content/meta.yml \
content/1_introducao/README.md \
content/2_algoritmos/README.md \
content/3_git/README.md \
content/4_react/README.md \
content/5_lumen/README.md \
--toc -o intro-dev-web.pdf
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
intro-dev-web.pdf
*.svg
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
up:
@docker-compose -p intro-dev-web -f .docker/docker-compose.yml up -d

up-build:
@docker-compose -p intro-dev-web -f .docker/docker-compose.yml up -d --build

sh:
@docker-compose -p intro-dev-web -f .docker/docker-compose.yml exec app sh

down:
@docker-compose -p intro-dev-web -f .docker/docker-compose.yml down

pdf:
@docker-compose -p intro-dev-web -f .docker/docker-compose.yml -f .docker/docker-compose-pdf.yml up
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Introdução ao desenvolvimento web

[Livro]() disponível para iniciar pessoas interessadas na área de desenvolvimento web.

## Build local

```sh
make pdf
```
9 changes: 9 additions & 0 deletions content/1_introducao/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Introdução

## Objetivo e escopo

## Dicas iniciais

## Onde estamos

## O que é a web
1 change: 1 addition & 0 deletions content/2_algoritmos/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Algoritmos com Javascript
3 changes: 3 additions & 0 deletions content/3_git/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Git e Github

![Fluxo de trabalho comum](content/3_git/workflow.gv.svg ){ width=50% }\
19 changes: 19 additions & 0 deletions content/3_git/workflow.gv
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
digraph D {
dev[label="cria/modifica/deleta arquivos"];

node [shape=rect,fontname=mono];
init[label="git init"];
clone[label="git clone <url>"];
add[label="git add"];
commit[label="git commit -m \"<Mensagem de commit>\""];
push[label="git push origin HEAD"];

init -> dev;
clone -> dev;

dev -> add -> commit;

commit -> push;
commit -> dev;
}

1 change: 1 addition & 0 deletions content/4_react/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Introdução ao desenvolvimento web com React
1 change: 1 addition & 0 deletions content/5_lumen/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Introdução ao desenvolvimento web com Lumen
4 changes: 4 additions & 0 deletions content/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Introdução ao desenvolvimento web
subtitle: Conteúdo introdutório essencial para entrar na área de desenvolvimento web
author:
- Felipe Silva

0 comments on commit 65b04ac

Please sign in to comment.