Start server, then access path: /api-docs.
-
Copy
.env.exampleto.env:cp .env.example .env
-
Create the database:
rails db:create
-
Run migration:
rails db:migrate
-
Run tests:
rails test -
Run linters:
bundle exec rubocop
UserOrderProductImageComment
The user will be able to place many orders, upload multiple products which can have many images or comments from another users.
When we use this gem, we generate serializer, it will generate the folder serializers. We neet to load this folder in application.rb file:
config.eager_load_paths << Rails.root.join("serializers")Read more here: Understanding Rails Custom Validations