Giter VIP home page Giter VIP logo

jasani-serverless-cljs-template's Introduction

jasani-serverless-cljs

Clojars Project

A Leiningen template for an npm serverless function compiled with the Clojurescript compiler.

Usage

Make sure you have the prerequisites installed.

  1. lein new jasani-serverless-cljs barserver
  2. lein deps
  3. .../serverless deploy

If all goes well, you should see output similar to this:

Serverless: Targeting /private/tmp/t/barserver/.serverless/barserver.zip
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Executing "lein update-in :cljs-lambda assoc :functions '[{:name "barserver-dev-get" :invoke barserver.core/get}]' -- cljs-lambda build :output /private/tmp/t/barserver/.serverless/barserver.zip :quiet"
Serverless: Returning artifact path /private/tmp/t/barserver/.serverless/barserver.zip
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
.....
Serverless: Stack create finished...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service .zip file to S3 (2.99 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
.................................
Serverless: Stack update finished...
Service Information
service: barserver
stage: dev
region: us-east-1
stack: barserver-dev
api keys:
  None
endpoints:
  GET - https://b7xwqq8zxb.execute-api.us-east-1.amazonaws.com/dev/get
functions:
  get: barserver-dev-get
  1. Test your function
curl https://b7xwqq8zxb.execute-api.us-east-1.amazonaws.com/dev/get

Prerequisites

Credits

This work builds upon the great work done by:

License

Copyright © 2018 Hitesh Jasani

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

jasani-serverless-cljs-template's People

Contributors

hiteshjasani avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.