Coder Social home page Coder Social logo

teamid-testing's Introduction

Serverless with Nodejs + Express + AWS Lambda + DynamoDB + Environment Variables

This is a starter repo for using serverless with AWS Lambda with certain structure. You can clone it and start you developemnt

Testing deployment setup for serverless

Setup three AWS profiles in you local

    teamid-dev # change to Development AWS Profile
    teamid-test # change to Testing AWS Profile
    teamid-prod # change to Production AWS Profile

Environment config

Environment variables are set using "env-STAGE.yml" file For example for development stage "env-development.yml" file will be loaded File containing environment variables will have all env vars under top level ENV object

    ENV:
        NAME: Avaneesh
        ROLE: Developer
        ANOTHER_ENV_VAR: Hello World!

Secrets like API keys and JWT secret key etc MUST be provided in secret-STAGE.yml file which is not included in this repository. This file is kept in the same directory where env-STAGE.yml is kept. Secrets have to be referenced in env-STAGE.yml file from this secrets-STAGE.yml file to avoid adding secrets in the repo.

Documentation

Documentation is provided by serverless-aws-documentaion plugin which generates API doc using serveless.yml file. To download the documentation

    serverless deploy
    serverless downloadDocumentation --outputFileName=./docs/swagger.json

This will download swagger definitions file, which we can explore and edit using swagger

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.