Git Product home page Git Product logo

rails-scaffold's Introduction

SOME TITLE

Ruby version:

2.6.5

Extra dependencies added to the project

gem 'active_model_serializers' -- scopes: root
gem 'rswag'

gem 'pry-byebug' -- scopes: development and test
gem 'rspec-its' -- scopes: development and test
gem 'rspec-rails' -- scopes: development and test
gem 'rubocop', '0.80.1', require: false -- scopes: development and test
gem 'rubocop-performance', require: false -- scopes: development and test
gem 'rubocop-rails', require: false -- scopes: development and test
gem 'factory_bot_rails' -- scopes: development and test
gem 'shoulda-matchers' -- scopes: development and test

gem 'faker' -- scopes: development and test
gem 'database_cleaner-active_record' -- scopes: test

Installing the application

Locally

Installing the resources

  • Database creation and initialization
rails db:setup

Initializing the application

rails s -p 3000 -b '0.0.0.0'

Docker

docker-compose up

Note

Database setup, migrations and seed have been configured on the docker-entrypoint.sh file.

Accessing the endpoints

Base URL

localhost:3000/api/v1

Resources - Direct link

swagger/v1/swagger.yaml

or

Running the test suite

bundle exec rspec

Extra configuration files

  • Rspec: under spec/*
  • Shoulda Matchers: under spec/spec_helper.rb
  • DatabaseCleaner: under spec/spec_helper.rb
  • FactoryBot: under spec/spec_helper.rb
  • Validation Support: under spec/support/validation_support.rb

Notes

  • Minitest has been replaced by Rspec as test suite. The Rspec structure has been initialized with:
rails g rspec:install

rails-scaffold's People

Contributors

raphaeloneves avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.