Git Product home page Git Product logo

private-events's Introduction

Logo

Private Events

Made by Jenny Cárdenas and Alan Soto
This project is a practice for doing association in Ruby on Rails framework.

‎ ‎ ‎ ‎

👩🏼‍💻 About Private Events

It allows you to sign up, log in, create events, go to events and delete the events if you have created them. You only can see the Create an event, Your events, Go and Leave this event buttons if you are logged in.

screenshot


🤖 Getting started

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

Prerequisites

  • Ruby 2.7.x
  • Rails 6.0.x

Setup

Clone the project from the repository here To get a local copy up and running follow these simple example steps.

Install

  • Open the terminal.
  • On the terminal navigate to the project directory using cd Private_Events/.
  • Install dependencies using: bundle install.
  • If it required: bundle update.
  • Migrate the database: rails db:migrate.
  • If required run: yarn install, and repeate the step 4.
  • Start the application : rails server.
  • To Stop the application : Create a user and the events.

Usage

  • Start the application : rails server.
  • Open the browser and go to : http://localhost:3000/
  • Create a new user.
  • Log-in.
  • Create your new event.

Run linters

Run rubocop . from the project root directory

🔧 Built With

  • Ruby
  • Ruby on Rails
  • Ruby gem bundler
  • Bootstrap
  • Linters
  • VS code

⚒️ Tested

  • Ruby gem RSpec
  • Ruby gem capybara

👥 Author

👤 Jenny Cárdenas

👤 Alan Soto

🤝 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

📝 License

This project is MIT licensed.

private-events's People

Contributors

janis-jenny avatar alansoto31 avatar

Stargazers

Blaise Pascal Shyaka avatar Miguel Uzcátegui avatar A B M Asadullah avatar

Watchers

 avatar

private-events's Issues

Code review from the cupids

  • No Spanglish on the page.
  • Test all the associations first in the console to ensure everything will work correctly in the views.
  • Check the attendee association in the event model.
  • Add links to move to the different parts of the app.
  • Move the logic from the views to a helper.
  • Don't forget to implement the attend link in the index page for the events.
  • Send the event id as a parameter in the URL and then get it inside the attendance controller and pass the userid from the current user and the eventid from the params.
  • If a user is attending the event the attending link should disappear.
  • Use scopes in the models to get past events and future events.
  • If it is a past event the attend link should disappear.
  • When you create an event, redirect to the event index page.
  • If the foreign key has the same name of a model you don't have to specify the foreign key in the associations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.