Skip to content

colimit-io/ruby-on-rails-realworld-example-app

 
 

Repository files navigation

Ruby On Rails implementation of RealWorld app

This Rails app is part of the RealWorld project.

See how the exact same Medium.com clone (called Conduit) is built using different frontends and backends. Yes, you can mix and match them, because they all adhere to the same API spec

This fork also demos using Colimit to automatically test the API, replacing conventional manually written Rails integration/request tests!

How to install the API

Make sure you have Ruby and Rails installed on your computer.

Clone the repo and enter the project folder

git clone https://github.com/colimit-io/ruby-on-rails-realworld-example-app
cd ruby-on-rails-realworld-example-app

Install gems

bundle install

Execute migrations

rails db:migrate

How to test the API with Colimit

Generate your Colimit API key/token, then set it as an environment variable

export COLIMIT_API_KEY=your-api-key-here

Run the Colimit test, and see the latest Colimit simulation in the UI (click into the Created link to view details as its running).

COLIMIT_MAX_GENS=20 bundle exec rails test test/integration/colimit_test.rb

About

Ruby On Rails implementation of the RealWorld app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 99.4%
  • HTML 0.6%