Prerequisites

The setups steps expect following tools installed on the system.

1. Check out the repository
git clone git@github.com:mohamedtaha123/rails_graphql_apollo_react
2. Create and setup the database

Run the following commands to create and setup the database.

bundle exec rake db:create
bundle exec rake db:setup
3. Start the Rails server

You can start the rails server using the command given below.

bundle exec rails s

And now you can visit the site with the URL http://localhost:3000

4. Run Tests (Rspec)

You can start the tests using the command given below.

bundle exec rspec