The company VotIt wants to offer a website for polls about the IT/dev.
- It would like that the users could sign up (email, password, pseudo) in order to create a poll (title, description) or vote on a poll.
- When a user creates a poll, he could add some proposals.
- A poll belongs to a category (front-end, back-end, devops, mobile, UI/UX).
- The result of the poll must be displayed by a progression bar
- The polls can be filtered (by category with a search)
1-Technologies 2-Installation 3-Run 4-Built with 5-Author 6-Licence
A list of technologies used within the project :
- WAMP Server (Windows, Apache, MySQL, PHP)
- PHP version 8.1
- MySQL version 5.7
-
Create the project in the www folder of WAMP.
-
Download the zip or clone the project in local :
git clone [https://github.com/Melissa-code/votit.git](https://github.com/Melissa-code/votit.git) -
Move into the directory :
cd /path/to/the/file/votit -
Open the project with a code editor, for instance Visual Studio Code.
-
Start WAMP and go to phpMyAdmin.
-
Create the database votit by a SQL query in the tab SQL :
CREATE DATABASE votit;USE votit;
Import the database (Upload the votit.sql file).
-
You can add a new user for the database : In phpMyAdmin, click on the tab User Account. Fill in the Username and the Password fields. Then, check the global privileges (here are all privileges) and link the user to the database.
-
Connect the project to the database.
-
You can add a local domain :
- Windows :
- Open the folder C:\Windows\System32\drivers\etc\hosts
- Add a line to the local domain :
127.0.0.1 votit.local
-
Machintosh : https://dev.to/crankysparrow/configuring-virtual-hosts-with-mamp-f3i
-
Then, indicate to Apache :
Update the httpd-vhosts.conf file : -
Wamp :
C:\wamp64\bin\apache\apache2.4.51\conf\extra\httpd-vhosts.conf -
Xampp :
C:\xampp\apache\conf\extra\httpd-vhosts.conf -
Mamp :
/Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
Finally, add the config :
<VirtualHost *:80> DocumentRoot "C:\wamp64\www\votit" ServerName votit.local </VirtualHost>
And restart Wamp server
- Start WAMP if it's not already started.
- Open your browser and navigate directly to http://votit.local (or http://localhost/votit/)
-
PHP 8.1 PHP Documentation PHP Documentation.
-
HTML/CSS HTML CSS MDN Documentation MDN Documentation & W3School W3School.
-
Bootstrap 5.3 Bootstrap Documentation Bootstrap Documentation.
-
JavaScript JavaScript Documentation MDN JavaScript Documentation.
-
GitHub GitHub.
-
FontAwesome Fontawesome and CDN font-awesome CDN font-awesome.
- Visual Studio Code Visual Studio Code.
Melissa-code
MIT
