Skip to content
benjaminhaverbekePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Agora

Project Description

Agora is a Symfony project online voting platform based on majority rule. Groups can gather in assemblies, invite other users, and vote on topics through proposals. A campaign phase allows users to discuss proposals through the chat feature. A voting phase enables users to vote for their preferred proposal. Finally, the last phase presents the voting results for each topic.

Online Version

An online version of the site is available at : www.agora-vote.fr

Test credentials:

Email: test@test.fr

Password: Test_1234

Prerequisites

Ensure the following softwares are installed in your system:

Apache 2.4, MySql 8.3, PHP 8.3.6 (I used WampServer)

Composer

Node.js

Installation

Cloning the GitHub repository:

Copy the git clone code

https://github.com/benjaminhaverbeke/Agora.git

Using Wamp

Clone the GitHub repository into the www directory of your Wamp installation:

Make sure Wamp is running and the Apache server is started.

Create a new SQL user

Log into phpMyAdmin: Access the phpMyAdmin interface using your local server's URL. Add a new user: Navigate to the "Users" tab, click "Add user," and fill in the required details (username, password, and host). Grant privileges: Select the desired database and check the privileges (e.g., SELECT, INSERT, UPDATE, DELETE) you want to assign to the user. Save changes: Click "Go" or "Add user" to create the new user.

Configuring Environment Variables

Go to the project's root directory and open .env, ensure DATABASE_URL config like this:

DATABASE_URL="mysql://newuser:newuserpassword@127.0.0.1:3306/agora?serverVersion=8.3.0&charset=utf8mb4"

Generate Schema Database

The database schema is generated using the command:

php bin/doctrine orm:schema-tool:create

Installing PHP Dependencies

Go to the project's root directory and install PHP dependencies via Composer:

composer install

update dependencies

composer update

Installing JavaScript Dependencies

Go to the project's root directory and install JavaScript dependencies via yarn:

yarn install

Running the Project

Ensure that Wamp is running and the Apache server is started.

Open your web browser and navigate to http://localhost/your-project-directory.

Troubleshooting

Wamp Issues: Ensure that no other programs are using the same port as Apache (usually port 80). Composer Issues: Make sure you have the latest version of Composer installed. Node.js Issues: Ensure that Node.js and yarn are correctly installed and their versions are up to date.

License

Agora © 2024 by Benjamin Haverbeke is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/4.0/

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages