A complete starter kit that allows you create amazing apps that look native thanks to the Quasar Framework. Powered by an API developed in Laravel Framework using the easy GraphQL queries language. And ready to use the Google Firebase features.
A complete starter kit that allows you create amazing apps that look native thanks to the Quasar Framework. Powered by an API developed in Laravel Framework using the easy GraphQL query language. And ready to use the Google Firebase features.
OAUTH 2 Laravel API Powered with GraphQl
Dashboard with a basic features developed with Quasar Framework
PHP script that allows securely storing the API client-id and client-secret and managing the OAUTH2 authentication and refresh tokens process
Prepare the Laravel API for the initial setup
git clone https://github.com/laqul/laqul.git cd laqul/api composer install cp .env.example .env php artisan key:generate php artisan passport:keys
mysql -u root -e "create database testdb";
If you have an existing mysql password, add -p above. You will be prompted for your password.
DB_DATABASE=YOUR_DATABASE DB_USERNAME=YOUR_DATABASE_USER DB_PASSWORD=YOUR_DATABASE_PASSWORD
php artisan migrate --seed
[email protected] MAIL_FROM_NAME='Laqul' MAIL_DRIVER=smtp MAIL_HOST=SMTP_HOST MAIL_PORT=SMTP_PORT MAIL_USERNAME=SMTP_USERNAME MAIL_PASSWORD=SMTP_PASSWORD MAIL_ENCRYPTION=tls
Into the Firebase project settings in service account option generate a private key, one file was downloaded, rename the key file to firebase-private.key and move it to laqul/api/storage folder
Get the Firebase AUD and paste it in laqul/api/.env file More Info
php artisan storage:link
php artisan serve
php -S localhost:8001
This creates a server listening in port 8001, this is the intermediary between client and api for the Oauth 2.0 authentication
apiKey: 'YOUR_FIREBASE_API_KEY', authDomain: 'YOUR_FIREBASE_AUTH_DOMAIN', databaseURL: 'YOUR_FIREBASE_DATABASE_URL', projectId: 'YOUR_FIREBASE_PROJECT_ID', storageBucket: 'YOUR_FIREBASE_STORAGE_BUCKET', messagingSenderId: 'YOUR_FIREBASE_SENDER_ID'
You are done! make something awesome!
Spelling and grammar correction are welcome :+1:
It would be great if you could contribute by adding new features, fixing bugs or showing us the steps to reproduce bugs.
Copyright (c) 2018-present Fabian VR