Milypm / private-events

RoR application where users can register and see/create/attend/unattend events, and also edit/delete their accounts and events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building an application for registering users, and creating/attending events

img_1 img_2 img_3

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.

Built With

  • 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

How to run it

  • 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/'.

Testing with RSpec / Capybara

  • 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.

Author

Mily Puente πŸ‘©β€πŸ’»

Contribute πŸ‘ˆ

Any advice and suggestion for improvement are more than welcome. Visit issues' section

Show your support

Give a 🌟 if you like this project!

License

This project is MIT licensed.

About

RoR application where users can register and see/create/attend/unattend events, and also edit/delete their accounts and events.

License:MIT License


Languages

Language:Ruby 68.7%Language:HTML 25.5%Language:JavaScript 3.9%Language:CSS 1.3%Language:SCSS 0.6%