Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
/ quai-antique Public archive

Le quai antique is a web application for a Savoyard restaurant. This is my final exam for my school, an in-training assessment (called ECF in French). The project works under Tailwind and Symfony

Notifications You must be signed in to change notification settings

Ainkra/quai-antique

Repository files navigation

This project is now deprecated. Do not use it if you don't know what you did. AT YOUR OWN RISK !

quai-antique

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

Technologies Used:

  • 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.

Builded with:

  • Encore Webpack

Setting up the project on local

  1. Download .zip repository.

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

  1. 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.

  1. Run composer install for obtain all the necessary dependencies for Symfony.

image

  1. Run npm install for obtain all the necessary dependencies for tailwind.

image

  1. Run your laragon.

image

  1. In my part, I configured laragon to simply have to write in url: http://quai-antique.local. (Right click, preferences) image

  2. Now you can type this in your browser: http://quai-antique.local/

  3. Done !

How create database?

If the quai_antique is successfully installed on your computer, you can now take care of the database.

  1. In the project, at the root, you must have an .env file. Config it.

image

  1. Restart laragon (click on "Recharger" or "Refresh").

  2. Now you need to create your database, in Laragon. Follow this:

image

and follow this (Copy this SQL request) CREATE DATABASE IF NOT EXISTS yourDatabase;

image

  1. 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

  2. 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

How create admin user?

  1. First, create a securised password. I recommend this website for that: https://www.dashlane.com/fr/personal-password-manager/password-generator

  2. Copy your password, paste it on a .txt file for example go in VSCODE and type this:

image

If you make a right click, nothing happens, don't panic. Your password is simply hidden. Press enter, and you get your hashed password.

  1. 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"]');

  1. Your admin account is now created. Log in, then enter this URL to get started: http://quai_antique.local/admin

Licensing

This project is licensed under the MIT License.

Terms of use

  1. 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.)

  2. Do not use this code for malicious purposes.

  3. Give me a advice, let's not waste our time.

About

Le quai antique is a web application for a Savoyard restaurant. This is my final exam for my school, an in-training assessment (called ECF in French). The project works under Tailwind and Symfony

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published