-
Clone the Repository:
git clone https://github.com/Ismat-Samadov/Private-Events.git
-
Navigate to the Project Directory:
cd Private-Events -
Install Dependencies: Make sure you have Ruby and Rails installed. Then run:
bundle install
-
Set Up the Database:
rails db:create rails db:migrate
-
Start the Server:
rails server
-
Access the Application: Open your web browser and go to http://localhost:3000 to access the application.
-
Sign Up or Log In:
- Navigate to http://localhost:3000/users/sign_up to sign up for a new account.
- If you already have an account, log in at http://localhost:3000/users/sign_in.
-
Create an Event:
- Once logged in, go to http://localhost:3000/events/new to create a new event.
- Fill out the form with event details and submit it.
-
View Events:
- Visit http://localhost:3000/events to view all events.
- Click on any event to view its details.
-
Attend an Event:
- To attend an event, click on the "Attend" button on the event details page.
-
View Attended Events:
- Visit http://localhost:3000/users/current to view events you have attended.
-
Edit or Delete Events (Extra Credit):
- If you are the creator of an event, you can edit or delete it from the event details page.
-
Remove Attendance (Extra Credit):
- If you have attended an event, you can remove your attendance from the event details page.
-
Invite Users to Events (Extra Credit):
- Event creators can invite specific users to their events. This functionality is not implemented in the basic version.
That's it! You can now use the "Private Events" application to create, manage, and attend events. Enjoy!