- Cadastro de Categorias
- Cadastro de Videos
yarn init -y
yarn add express
yarn add typeorm
yarn add reflect-metadata
yarn add pg
yarn add uuid
yarn add @types/express - D
yarn add @types/uuid -D
yarn add ts-node-dev -D
yarn add typescript -D
yarn add typeorm migration:create -n CreateCategories
yarn add typeorm migration:create -n CreateVideos
yarn add typeorm migration:run
touch .env
touch .env.template
touch .gitignore
touch service.http
mkdir src/
mkdir src/controllers
touch src/controllers/CreateCategoryController.ts
touch src/controllers/CreateVideoController.ts
touch src/controllers/DeleteCategoryController.ts
touch src/controllers/GetAllCategoryController.ts
touch src/controllers/GetAllVideoController.ts
touch src/controllers/UpdateCategoryController.ts
mkdir src/database
mkdir src/database/migrations
touch src/database/index.ts
mkdir src/entities
touch src/entities/Category.ts
touch src/entities/Video.ts
mkdir src/services
touch src/services/CreateCategoryService.ts
touch src/services/CreateVideoService.ts
touch src/services/DeleteCategoryService.ts
touch src/services/GetAllCategoryService.ts
touch src/services/GetAllVideoService.ts
touch src/services/UpdateCategoryService.ts
touch src/routes.ts
touch src/server.ts
- Node
- Express
- TypeScript
- TypeORM
- Postgres
- UUID
Feito com por 👋🏽
Anderson Lopes
Fonte: Rocketseat
#code/drop 113
🚀 Link Tutorial em video