This repository stores a practice of Ruby on Rails which consists of creating a simple event manager. Users can register, create, join or leave events. Only registered users are able to join events, thus the name private events. The full description for this practice can be found at the following link: The Odin Project - Ruby on Rails - Associations
This guide for installation assumes that you have Ruby on Rails installed on your local machine. If you do not, you'll need to install it first: Installing Ruby, Installing Rails.
If you are all set, the following sequence of commands may help you installing and getting started with seeing this practice in action in your local machine:
git clone https://github.com/elshaka/private-events
cd private-events
bundle install
rails db:migrate
rails server
After the application is up and running, you'll need to create a user account for creating and joining events. You can do that by visiting /signup. After the user is created, you'll need to login, which can be done by visiting /login. After logging in, the front page will give you options regarding how to create, join or leave events.
This project uses Rspec. The basic tests for checking if this project conforms to the specification can be run with the following command at the root folder of the project.
rspec