I created a Ruby on Rails application for a site where users can create accounts (just with a username) and events through ActiveRecord associations having many to many relationships between the models.
- Consists of three models: user, event, and event_attending, five controllers: users, events, home, sessions, and event_attendings, and four main views: home, users, sessions, and events.
- User authentication and sessions are built from scratch.
- A user must be registered and logged in to be able to see, create and attend events.
- A user can edit or delete her/his own account, and her/his own events.
- A user can attend / unattend multiple events.
- Ruby (v. 2.7.2 / 3.0.0)
- Ruby on Rails (v. 6.1.1)
- HTML / CSS (Bootstrap)
- Rubocop
- RSpec and Capybara for testing
- Git
- It's recommended to use Git's latest version.
- Clone or download the repo from here private-events on your local system.
- Click on the "Code" green button and copy HTTPS URL.
- Go to your local system, on an empty folder, to clone the repo: 'git clone -HTTPS URL-'.
- Go to the repo folder.
- Install the dependencies: 'bundle install'.
- Migrate the database: 'rails db:migrate'.
- Start the server: 'rails server' or 'rails s'.
- Copy/open the path given to open the project in the browser: 'http://localhost:3000/'.
- On the command line, go to the application's root directory, and type: 'rspec'.
- You now should see the tests outcome for unit and integration tests included in the '/spec' directory.
Mily Puente π©βπ»
- GitHub: @Milypm
- LinkedIn: Mily Puente
Any advice and suggestion for improvement are more than welcome. Visit issues' section
Give a π if you like this project!
This project is MIT licensed.