Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

A template repository to create Lumen-based microservices running on AWS Lambda.

Notifications You must be signed in to change notification settings

grrr-amsterdam/lumen-microservice-template

Repository files navigation

Lumen microservice template

We recommend using our Laravel microservice template. This repository is deprecated.

This is a template repo for microservices running on AWS Lambda.


Installation

Install dependencies:

$ composer install
$ yarn install

Create a .env file, based on .env.example.

API

Run a local server using

$ php -S localhost:8000 -t public

Deploy

You can use stages to deploy to development, staging and production (default: development).

Prerequisites

  1. You have the AWS cli tool installed.
  2. You have configured a profile for this service.
  3. You have created .env.staging and .env.production files, based on .env.example.
  4. Make sure the value for AWS_PROFILE in the applicable .env file corresponds to the profile you created in step 2.

Deploy staging

$ npx serverless deploy --stage staging --env staging 

Deploy production

$ npx serverless deploy --stage production --env production 

Serverless will print the HTTP endpoints to the screen.

Stack

Build on Lumen, deployed using Serverless framework.

About

A template repository to create Lumen-based microservices running on AWS Lambda.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages