flowchart TD
R[Request] --> C[Application Controller]
C --> O[Application Operation]
O -- Validate Params --> AC[Application Contract]
O -- Application Contract returned success?--> S[Application Service]
AC -- Validation success? --> O[Application Operation]
AC -- Validation failed? --> E[Contract Errors]
E --> RE
S -- Process successful? --> RS[Resource]
S -- Process failed? --> OE[Resource Errors]
OE --> RE[Response]
RS --> RE
RE -- Returns --> C
-
Install GEM dependencies:
bundle install
-
Create database, migrate tables and run the seed data:
rails db:create rails db:migrate rails db:seed
-
If you are setting up again, when you already have previous databases:
rails db:reset
reset
is equivalent ofrails db:drop & rails db:setup
. -
Run the server
./bin/dev