This project is now deprecated. Do not use it if you don't know what you did. AT YOUR OWN RISK !
Quai Antique is a Savoyard restaurant website built with the Symfony web framework and Tailwind CSS. The website was developed and hosted on Laragon. This website is my final exam for my school. If you have any opinion/advice or other to give me, contact me by email: loisdupasquier21@gmail.com
- Symfony 6.2.* (A PHP framework for building web applications.)
- TailwindCSS 3.2.4 (A utility-first CSS framework for building responsive and customizable user interfaces.)
- Laragon: A local web development environment for Windows.
- Encore Webpack
- Download .zip repository.
- Install laragon, composer, and NodeJS.
- https://laragon.org/download/index.html
- https://getcomposer.org/download/
- https://nodejs.org/en/download/ and download Longterm support version (LTS)
Verify composer installation with composer -v
.
Verify NodeJS installation with node -v
.
PHP is installed by default by Laragon. If you are not in PHP 8.1, follow this guide: https://medium.com/@oluwaseye/add-different-php-versions-to-your-laragon-installation-d2526db5c5f1
- When laragon is successfully installed, open your folder explorer. Go at this path:
C:/laragon/www/
Drag and drop the .zip file, unzip it inside the folder. After unzip, you can remove .zip.
- Run composer install for obtain all the necessary dependencies for Symfony.
- Run npm install for obtain all the necessary dependencies for tailwind.
- Run your laragon.
-
In my part, I configured laragon to simply have to write in url: http://quai-antique.local. (Right click, preferences)
-
Now you can type this in your browser: http://quai-antique.local/
-
Done !
If the quai_antique is successfully installed on your computer, you can now take care of the database.
- In the project, at the root, you must have an .env file. Config it.
-
Restart laragon (click on "Recharger" or "Refresh").
-
Now you need to create your database, in Laragon. Follow this:
and follow this
(Copy this SQL request) CREATE DATABASE IF NOT EXISTS yourDatabase;
-
Your database is now created. Normally, in migration, you have the latest version of my database. Just simply run:
php bin/console doctrine:migrations:migrate
-
Your database and tables are now created and ready to use !
If you have any problem with the installation, contact me at this email: loisdupasquier21@gmail.com
-
First, create a securised password. I recommend this website for that: https://www.dashlane.com/fr/personal-password-manager/password-generator
-
Copy your password, paste it on a .txt file for example go in VSCODE and type this:
If you make a right click, nothing happens, don't panic. Your password is simply hidden. Press enter, and you get your hashed password.
- Now, return in HeidiSQL, and type this: (replace the fields with the necessary information, for example 'mon-mail@exemple.com' -> loisdupasquier21@gmail.com)
INSERT INTO customer (email, password, guest_number, allergies, roles) VALUES ('mon-mail@exemple.com', 'hashed_password', 'number_of_guest (max 8)', 'mes_allergies', '["ROLE_ADMIN"]');
- Your admin account is now created. Log in, then enter this URL to get started:
http://quai_antique.local/admin
This project is licensed under the MIT License.
-
Any Digital Campus Live school learner must notify me in case of reuse of the code provided in this repo. I will not be held responsible for any undesirable use of my code (cheating, hacking, etc.)
-
Do not use this code for malicious purposes.
-
Give me a advice, let's not waste our time.