Skip to content

thealoneprogrammer/larafirebase

 
 

Repository files navigation

Larafirebase

A simple and clean CRUD laravel blog app using PHP(Laravel) and VueJs with Google Firebase.

How to use

First thing is to install all our PHP libraries. You can do so by executing this command on your terminal.

composer install

We then copy the contents of our .env.example and create a .env file on our project root and paste the contents there. After which, execute this command on your terminal to generate new app key.

php artisan key:generate

Then, we need to install our npm dependencies. Do that by executing this command on your terminal

npm install

Open app folder and create a new folder called secret and paste your Google service account key. Then, open PostsController and put the path to that file on our LaraFirebase object instance. e.g

$this->pfb = new LaraFirebase('../secret/php-crud-f7984-3f535927d6d2.json'); 
// Change this path as per your key name

To see the app, execute this command on your terminal.

php artisan serve

That's all you need to do.

Let me know if you need any help.

About

A simple and clean CRUD laravel blog app with Google firebase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 79.3%
  • HTML 10.4%
  • Vue 10.3%