Skip to content

Instantly share code, notes, and snippets.

@shuantsu-zz
Last active June 21, 2021 19:58
Show Gist options
  • Save shuantsu-zz/0ee53f7a79d2881fa3aaef9988b8a56a to your computer and use it in GitHub Desktop.
Save shuantsu-zz/0ee53f7a79d2881fa3aaef9988b8a56a to your computer and use it in GitHub Desktop.
rocketseat-2021

repo com os arquivos produzidos na aula


yarn init -y
mkdir src
touch src/server.ts
yarn add express
yarn add @types/express ts-node-dev typescript -D
yarn tsc --init
code .

# em tsconfig.json, mudar:
# "strict": true -> false
# ----
# inserir scripts no package.json:
# "scripts": {"dev": "ts-node-dev src/server.ts"},
# ----
# escrever código da aula no arquivo server.ts e rodar com "yarn dev" no terminal
@mbmaciel
Copy link

ótimo !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment