🍺 A Beer catalog featuring a login page and a paginated view of all available beers. 🍻
- The 8.2 version of PHP, bringing new features and improvements.
- The web server for serving your PHP application.
- A containerization platform for packaging, distributing, and running applications.
- The backend framework for building robust and scalable web applications.
- The progressive JavaScript framework for building user interfaces.
- A delightful PHP Testing Framework with a focus on simplicity.
- JSON Web Tokens for secure and stateless authentication.
- 🚀 User Authentication: Secure login page for user authentication (JWT).
- 🍺 Beer Catalog: Explore a wide variety of beers with pagination support.
-
Clone the repository:
git clone git@github.com:gianni/BREWherehouse.git
-
Move to the directory:
cd BREWherehouse
-
Open VSCode:
code .
-
Start DevContainer:
In the VSCode menu
Riquadro Comandi > DevContainer: Rebuild and reopen in container
-
Install php and npm packages:
In the shell of the DevConatainer execute these commands.
composer install npm install
-
Create a .env file:
cp .env.example .env
-
Start Apache and ViteJs server:
service apache2 start npm run dev
-
Generate keys:
php artisan key:generate php artisan jwt:secret
-
Execute migration and seed the database:
php artisan migrate php artisan db:seed
-
Add local domain to the hosts file (root user):
echo "127.0.0.1 www.brewherehouse.loc" >> /etc/hosts
-
Point the browser to this url
http://www.brewherehouse.loc:8080