Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serverless generator #3

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

jagthedrummer
Copy link
Contributor

@jagthedrummer jagthedrummer commented Jun 4, 2016

This is a first pass at generating a serverless function and endpoint from the apps router and modules.

The _serverless directory contains a serverless project (generated with sls project create _serverless), and the _serverless/_auto directory is the target for the automatically built artifacts.

To generate the functions and end points you can run node demo-app-prepare-deploy.js

To deploy this you'll first need to install serverless : npm install -g serverless

Then you can cd _serverless and then sls dash deploy

You can see the version that's deployed in my AWS stage here:

https://amifsl8oqb.execute-api.us-east-1.amazonaws.com/dev/posts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant