Skip to content

This project is inspired by Eventbrite and it's meant to practice associations using different foreign keys and class names to identify tables (Users and Events), through a has-many-trough revelation where an intermediate table is needed. The goal is to list all events created with their user attendees, displaying the info on past and upcoming e…

License

Notifications You must be signed in to change notification settings

mrigorir/private-events

 
 

Repository files navigation

Associations

This project is inspired on Eventbrite and it's meant to practice associations using different foreign keys and class names to identify tables (Users and Events), through a has-many-trough reelation where an intermediate table is needed. The goal is to list all events created with their user attendees, displaying the info on past and upcomming events.

What was built in this project

  • Created User, Event and Event_arttende models.

  • Created validations.

  • Stabilised relationships between tables using has-many-trhough relation.

  • Display past and upcomming events with their user attendees.

  • Bootstrap.

  • Font awesome.

  • Devise.

  • Action Text.

Built With

  • Ruby 2.7.2

  • Ruby on Rails 6.1.1

  • VS code

  • Linters (RuboCop)

Prerequisites

Text Editor (VSCode is suggested.), Ruby Rails Bundler, Yarn, SQL

Live Demo

Getting Started

To get a local copy up and running follow these simple example steps:

  • On the project, GitHub page, navigate to the main page of the repository this page

  • Click on a green button named Code

  • Copy the project URL as displayed

  • If you're running Windows Operating System, open your command prompt. On Linux, Open your terminal

  • Change the current working directory to the location where you want the cloned directory to be made. Leave as it is if the current location is where you want the project to be.

  • Type git clone, and then paste the URL you copied in Step 3.

    $ git clone https://github.com/pountzas/private-evetns.git Press Enter key

  • Your local copy will be created.

  • Please note that you must have Git installed on your PC, this can be done here

  • After you get the project aiming to the desired directory, you need now to install ruby globally

    for that, in your terminal run bundle install to install the project's dependencies.

  • Run yarn to install all the dependencies.

  • Rub yarn add jquery popper.js bootstrap

  • Run db:migrate so you can have the representations of tables in your project.

  • Run rake db:migrate RAILS_ENV=test so you can have the representations of test tables in your project.

  • run rspec to run the test cases.

  • Run rails c in order to interact with your terminal app.

Authors

👤 Marco Parra

👤 Nikos Pountzas

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Microverse

  • This project is inspired on Eventbrite

📝 License

This project is MIT licensed.

About

This project is inspired by Eventbrite and it's meant to practice associations using different foreign keys and class names to identify tables (Users and Events), through a has-many-trough revelation where an intermediate table is needed. The goal is to list all events created with their user attendees, displaying the info on past and upcoming e…

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 62.4%
  • HTML 32.1%
  • Batchfile 3.0%
  • SCSS 2.5%