https://github.com/lucassantus/node-videos
https://github.com/lucassantus/node-videos
nodejs postgress typeorm typescript
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lucassantus/node-videos
- Owner: lucassantus
- Created: 2022-03-15T11:22:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-15T17:08:46.000Z (over 4 years ago)
- Last Synced: 2025-05-17T06:41:16.579Z (about 1 year ago)
- Topics: nodejs, postgress, typeorm, typescript
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vídeos
passos realizados
**create package.json**
```
yarn init -y
```
**install dependencies**
```
yarn add express
```
**install dependencies dev**
```
yarn add typescript ts-node-dev @types/express -D
```
**init archive config typescript**
```
yarn tsc --init
```
**install dependencies Postgress**
```
yarn add typeorm reflect-metadata pg
```
**create migration**
```
yarn typeorm migration:create -n CreateCategories
```
**run migration**
_requisitos_
> Necessário postgress instalado,
> Drivers postgress configurado,
> Superuser com login&senha adicionado e configurado,
> Banco de dados code_drops_crud criado.
```
yarn typeorm migration:run
```
**revert migration**
_Comando para reverter as migrações._
```
yarn typeorm migration:revert
```
**install dependencies uuid**
```
yarn add uuid
```
**install dependencies uuid dev**
```
yarn add @types/uuid -D
```
Code Drops & Rockeatseat
https://www.youtube.com/watch?v=9AO2hZJsHrs