Code Monkey home page Code Monkey logo

private-events's Introduction

Project Name: Private Events

Objective:

To put in practice the main concepts of Associations in rails through an app similar to Eventbrite

screenshot

Features

The front end ( http://localhost:3000/ ) displays the list of all events, categorized by upcoming and past ones. Only signed-in users can register to events. Links in the nav bar lets users Join, Sign In, view Popular Events and Logout if signed in. When Signed in, a user can access private pages via Create Event and My Events links. Every signed-in user can invite other users to an event. Only upcoming events show the option to invite users. After an event is successfully created, the user gets redirected to the event's show page. When viewing an event, the user can see a list of all the attendees.

Prerequisites

  • Ruby 3.0.
  • Rails 6.1.3
  • SQLite3
  • Node.js
  • Yarn

Getting Started & Troubleshooting

  • Open your terminal - Windows: Win + R, then type cmd | Mac: Command + space, then type Terminal
  • Navigate to a directory of your choosing using the cd command
  • Run this command in your OS terminal: git clone [email protected]:george-swift/private-events.git to get a copy of the project.
  • Navigate to the project's directory using the cd command
  • Migrate the database to your environment using: rails db:migrate
  • Run rails webpacker:install to configure Webpacker for your environment. Otherwise, an error like so Webpacker::Manifest::MissingEntryError will appear if you attempt to run the server.
  • The Rails asset pipeline works in parallel with Webpack and Yarn, and you need both jQuery and Bootstrap’s JavaScript library installed for the app to work. To begin execute yarn add [email protected] [email protected].
  • Next, to make jQuery available in your application, you need to edit Webpack’s environment file. Navigate to config/webpack/environment.js and include the following snippet below the first line:
  const webpack = require('webpack')
  environment.plugins.append('Provide',
    new webpack.ProvidePlugin({
      $: 'jquery',
      jQuery: 'jquery',
      Popper: ['popper.js', 'default']
    })
  )

  • Then install dependencies by running bundle install in the terminal
  • Finally, run the test suite to verify that everything is working correctly: rails test
  • If the test suite passes, you are ready to run the app in a local server. Execute rails s to fire up the server
  • Visit http://localhost:3000/ in your browser to get into the app
  • Users can interact with the app using the links in the nav bar. To access private pages, sign up by clicking the Join link
  • To terminate the server, enter Ctrl + C in your terminal

Authors

👤   Miguel Ricardo Gomez

👤   Ubong George

Acknowledgments

Ruby on Rails Guide for technical information on how to be productive with Rails

Show your support

Give a ⭐️   if you like this project!

License

Available as open source under the terms of the MIT License.

private-events's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.