In this project, I created a Rails app for users to create and attend events. It involves has_many through associations. An event has a creator and many attendees. A user can create and attend many events.
I also used validations, complex database queries, as well as RSpec and Capybara for testing.
- Ruby v 2.7.1
- Rails v 6.0.3.3
- Devise
- Bulma
- Simple Form
- SQLite3
- RSpec
- Capybara
- FactoryBot
- Faker Gem
- Open your Terminal and navigate to the directory of your choice
- Clone this repo from here
cd
into the repo folder and runbundle install
- Make sure you have the latest version of
yarn
installed in your machine. Sometimes the presence ofcmdtest
preventsyarn
from being upgraded to its latest version - Run
rails db:migrate
- Run
rails server
and navigate tolocalhost:3000
in your browser - The home page will have a form for creating an event. It will also list all the events created by all the users
- Sign up, log in and click the
Create Event
button to go back to the home page. Use the form to create some events. - Sign up from another browser using a second
username
andemail
. Create some events from that account - When an event is successfully created, it takes you to the event page
- Now, attend the events using the
Attend this event
button. Your name will appear in the eventAttendees
list. Try attending the event you already have attended. It will give you an notice/alert - You can navigate to other pages using the
Go To Main Feed
andGo to My Events
links - Visit the home page by clicking the
Go To Main Feed
orEventeer
brand link left of the navbar. It will list all the events created. Events are listed asUpcoming
andPast Events
- Now, click the
My Events
link in the right side of the navbar. It will list all events you have created, as well as those you are attending. Each section is subdivided intoUpcoming
andPast Events
sections - Finally, log out and it will lead you back to home page and you will have to log in in order to create and attend an event
👤 Abdullah Numan
- Github: https://github.com/anewman15
- Twitter: https://twitter.com/aanuman15
- Linkedin: https://www.linkedin.com/in/aanuman15/
- Email: [email protected]
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!