Laravel Chirper Full Stack App was developed based on Laravel Bootcamp, and it is based on Livewire for frontend.
For a installation with Docker, ensure that you have the following prerequisites installed on your system:
Warning Make sure to follow the requirements first.
Here is how you can run the project with Docker (Laravel Sail):
-
Clone this repo
git clone https://github.com/saberaldda/chirper.git
-
Go into the project root directory
cd chirper
-
Copy .env.example file to .env file
cp .env.example .env
-
Install PHP dependencies with Laravel Sail
./vendor/bin/sail up
-
Create database
reports
(you can change database name) -
Go to
.env
file- set database credentials
DB_DATABASE=chirper DB_USERNAME=root DB_PASSWORD=[YOUR PASSWORD]
Make sure to follow your database username and password
- set mail provider credentials
MAIL_HOST= MAIL_PORT=2525 MAIL_USERNAME= MAIL_PASSWORD= MAIL_ENCRYPTION=tls
- set socialite provider credentials
GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET= GITHUB_CALLBACK_URI= ...
- set database credentials
-
Generate key
./vendor/bin/sail artisan key:generate
-
Run migrations & seeders
./vendor/bin/sail artisan migrate ./vendor/bin/sail artisan db:seed
-
Visit http://localhost in your favorite browser.
For a local installation, ensure that you have the following prerequisites installed on your system:
Warning Make sure to follow the requirements first.
Here is how you can run the project locally:
-
Clone this repo
git clone https://github.com/saberaldda/chirper.git
-
Go into the project root directory
cd chirper
-
Copy .env.example file to .env file
cp .env.example .env
-
Create database
reports
(you can change database name) -
Go to
.env
file- set database credentials
DB_DATABASE=chirper DB_USERNAME=root DB_PASSWORD=[YOUR PASSWORD]
Make sure to follow your database username and password
- set mail provider credentials
MAIL_HOST= MAIL_PORT=2525 MAIL_USERNAME= MAIL_PASSWORD= MAIL_ENCRYPTION=tls
- set socialite provider credentials
GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET= GITHUB_CALLBACK_URI= ...
- set database credentials
-
Install PHP dependencies
composer update
-
Generate key
php artisan key:generate
-
Run migrations & seeders
php artisan migrate:fresh --seed
-
Run server
php artisan serve
-
Visit localhost:8000 in your favorite browser.
Make sure to follow your Laravel local Development Environment.