GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - realabbas/serverless-lambda-node-express-mongodb: Boilerplate for Creating Restful API using Express.js, Node.js, Mongodb and Setting up on AWS Lambda 🚀

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.serverless
.serverless
 
 
lib
lib
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 
code-of-conduct.md
code-of-conduct.md
 
 
contributing.md
contributing.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
secrets.json
secrets.json
 
 
server.js
server.js
 
 
serverless.yml
serverless.yml
 
 

Repository files navigation

Serverless-AWS-Lambda-Node-Express-MongoDb Boilerplate 🚀

Visitors

Boilerplate for Creating Restful API using Express.js, Node.js, Mongodb and Setting up on AWS Lambda

Serverless-AWS-Lambda-Node-Express-MongoDb Search Results

  • Prerequisites

    • AWS IAM Role
    • Mongodb Atlas Cloud
    • Serverless Framework
    • Node.js
    • Express.js
    • Mongodb
    • body-parser
    • Serverless-offline
    • loadtest

Installation Steps

In the root directory run the following command:

  • npm install It will save all the dependencies and dev-dependencies present in package.json

Setup the IAM Role and configure the serverless(sls) commandline.

Create an account on Mongodb Atlass Cloud and Whitelist the IP Address 0.0.0.0/0. Also create a user in database and setup it in secrets.json

Create Restful API using Express and Node

Deploy the codebase using sls deploy for the development stage For production switch over to production in secrets.json

After sls deploy. Code will be deployed on AWS Lambda. Head over to AWS Lambda and test it using Postman or Insomnia. After that for scaling test, use loadtest and send 100 GET concurrent requests for 10 simulatenous users and watch the latency that comes around to be ~5 seconds.

Cheers! AWS Lambda Auto Scaling with increase in requests.

Resource: Thanks Hackernoon

About

Boilerplate for Creating Restful API using Express.js, Node.js, Mongodb and Setting up on AWS Lambda 🚀

realabbas.github.io/serverless-lambda-node-express-mongodb/

Resources

Readme
CC0-1.0 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

24 stars

Watchers

4 watching

Forks

9 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.