Web application (Blog) developed in Laravel version 10
Use the terminal of your OS for execute the following commands
Clone the project
git clone git@github.com:AntonioGuizar/Protec.git
Go to the project directory
cd my-project
Install dependencies
composer install
npm install
Rename the .env file
mv .env.example .env
Configure the database into the .env file, set a database name and use your user and password to allow the database creation
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=protec
DB_USERNAME=root
DB_PASSWORD=
Generate the APP KEY
php artisan key:generate
Run migrations to populate the database
php artisan migrate --seed
The last command will create the database, tables and some example data
Start the Laravel server
php artisan serve
Start the development server
npm run dev
Remember that you are in a development environment, so the application needs to run the development server. If you want to make changes, this will help you with Laravel hot reload and debugger.
You can use the aplication in http://127.0.0.1:8000
There are 3 test user, you can use one of them or create your own user
Each test user has 5 posts created
email: user1@example.com
password: password1
email: user2@example.com
password: password2
email: user3@example.com
password: password3
To run this application you must take into account the following requirements.
- PHP >= 8.1
- Composer
- A database server running (MySQL)