Coder Social home page Coder Social logo

rails_engine's Introduction

Rails Engine

Description

You are working for a company developing an E-Commerce Application. Your team is working in a service-oriented architecture, meaning the front and back ends of this application are separate and communicate via APIs. Your job is to expose the data that powers the site through an API that the front end will consume. The organization of this project spec is by feature type.

Getting Started

Ruby Version

ruby '2.7.2'

Rails Version

gem 'rails', '~> 5.2.6'

Add the following gems to your gem file in the development/test group:

  gem 'simplecov'
  gem 'shoulda-matchers'

shoulda-matchers Docs

simplecov

Add the following gems to your gem file in the test group:

  gem 'rspec-rails'
  gem 'factory_bot_rails'
  gem 'faker'
  gem 'pry'

faker Docs factory_bot_rails Docs

Add the following gem to your gem file outside of the group do blocks.

gem 'jsonapi-serializer'

jsonapi-serializer Docs

Rails_Helper

Add this to the top of your Rails Helper

require 'simplecov'
SimpleCov.start

This should be inside of your RSpec configure block

config.include FactoryBot::Syntax::Methods

This should be at the botttom of your rails helper

Shoulda::Matchers.configure do |config|
    config.integrate do |with|
      with.test_framework :rspec

      with.library :rails
    end
  end

Database Creation and Initialization

The data for this project is included in the repo. You will have to create and migrate the database in order for tests to pass.

rails db:create 
rails db:migrate 

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.