https://github.com/coderatio/larafirebase
A simple and clean CRUD laravel blog app with Google firebase
https://github.com/coderatio/larafirebase
Last synced: about 1 month ago
JSON representation
A simple and clean CRUD laravel blog app with Google firebase
- Host: GitHub
- URL: https://github.com/coderatio/larafirebase
- Owner: coderatio
- License: mit
- Created: 2018-11-25T21:37:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-01T02:50:09.000Z (over 7 years ago)
- Last Synced: 2025-01-06T00:42:18.738Z (over 1 year ago)
- Language: PHP
- Size: 4.05 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```vim
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.
```vim
php artisan key:generate
```
Then, we need to install our npm dependencies. Do that by executing this command on your terminal
```vim
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
```php
$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.
```vim
php artisan serve
```
That's all you need to do.
Let me know if you need any help.