Skip to content

📖 Bootcamp de Backend com Adonis - Cataline - Yung Silva

Notifications You must be signed in to change notification settings

arnonrdp/Adonis-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend

Build Setup

Install Docker Compose.

# Create container with MySQL
docker-compose up -d

# Create database structure
node ace migration:run

# install dependencies
npm install

# server with changes watcher
npm run dev

# build for production and launch server
npm run build
npm run start

Comandos Úteis

# Create migrations and prepare for creating tables
node ace make:migration posts

# Create tables: executa o comando UP das migrations não executadas
node ace migration:run

# Drop tables: executa o comando DOWN da última migration executada
node ace migration:rollback

# Cria um novo Model: cria uma nova classe Model
node ace make:model Post

# Cria um novo Controller: cria uma nova classe Controller
node ace make:controller Posts -r

# Exibe o status das migrations
node ace migration:status

node ace migration:status

# Exibe a lista de rotas
node ace list:routes

# Cria um novo Controller de autenticação
node ace make:controller Auth -r

# Cria um seeder de primeiro usuário
node ace make:seeder FirstUser

#  Executas as seeders registradas
node ace db:seed

# Cria um Validator para validar os dados de Post
node ace make:validator Post

About

📖 Bootcamp de Backend com Adonis - Cataline - Yung Silva

Topics

Resources

Stars

Watchers

Forks

Languages