Skip to content

Repository for everything related to our candidate testing

Notifications You must be signed in to change notification settings

SecretSourceWeb/template-ruby-on-rails

Repository files navigation

README

This repository is used to populate a database with data to test the database queries needed for the candidate tests of Secret-Source. This is only for testing purposes and you don't need to have it working on your computer.

To use this repository you need to have rails installed on your computer.

Installing rails

Before you install Rails, you should check to make sure that your system has the proper prerequisites installed. In this project we use Ruby '2.5.5', Rails ~> 5.2.3 and MySQL2. Make sure your system is using the right version of ruby. You have to have also the bundle/bundler gem installed in your system.

Get the system working

Once you have cloned the repository, you have to install the gems. Go to the project folder and run bundle install.

Now you have to configure the database.yml file. Edit the database.yml file and add the SQL user and password for the access to the database. Run rails db:create .

You have the database created and now you can run the migrations - rails db:migrate - and populate the database with the information in the seed file - rails db:seed.

There we go

Everything is set to start working on your queries. Good luck, and most important... enjoy.

Note

You should have also the SQL script provided by Secret Source to generate the data to test your solutions. In case you don't have this, please ask for the script.

About

Repository for everything related to our candidate testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published