46

GitHub - firevel/firevel: 100% serverless Laravel Framework

 5 years ago
source link: https://github.com/firevel/firevel
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

README.md

68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f6669726576656c2d7075626c69632f696d616765732f6c6f676f2e706e67

About Firevel

Firevel is a modified, serverless version of Laravel Framework designed to work inside Google App Engine standard environment, together with Google Firestore as database and cache.

In addition to standard Laravel Framework benefits it offers:

  • Simple, serverless setup.
  • Downscaling to zero.
  • Micro-service friendly design.
  • Free tier eligibility.
  • Capacity to deal with high loads.

Installation

  1. Create a project in the Google Cloud Platform Console.

  2. Install gcloud command-line tool.

  3. Create firevel project with:

composer create-project firevel/firevel
  1. Deploy project with:
gcloud app deploy

Firevel does not require any credentials while running inside App Engine. If you like to run it locally you will also need to set GOOGLE_CLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS .env variables.

Differences between Laravel and Firevel.

Firevel is a Laravel 5.8 after small updates and packages installation:

Usage

You can use Firevel in the same way you use Laravel. Be aware of Firebase limits and Google App Engine limits.

You should also replace Eloquent models with Firequent, by using use Firevel\Firequent\Model; instead of use Illuminate\Database\Eloquent\Model; inside a model class. Keep in mind that Firequent is in beta and support only basic queries.

CI

You can run a simple CI process with gcloud builds submit --config cloudbuild.yaml --substitutions _APP_KEY= with your production API key at the end. You can also connect it with your existing repository but remember to setup _APP_KEY.

More

Credits


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK