Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucassantus/node-videos
https://github.com/lucassantus/node-videos
nodejs postgress typeorm typescript
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lucassantus/node-videos
- Owner: LucasSantus
- Created: 2022-03-15T11:22:45.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-15T17:08:46.000Z (almost 3 years ago)
- Last Synced: 2024-11-07T04:27:31.484Z (about 2 months ago)
- Topics: nodejs, postgress, typeorm, typescript
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 3
- 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