Skip to content

This is a sample project made on the Server Framework, with DynaomoDB as the backend with Dynamoose as the ORM. This project is debuggable on VSCode. This can be used as a started project for any API implementations .

Notifications You must be signed in to change notification settings

raj-sampath/serverless-aws-nodejs-dyanmoose-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Apis for Lamda (AWS) using the Serverframework backed by the DyanoDB using Dynamoose

This project was created as a POC when moving from NodeJS(Express) - MongoDB(Mongoose) to NodeJS(Lamda- API Gateway) - DyanamodDB(Dyanmoose).

One of the most important checkpoints in evaluating a new technology is how easy is it to test and debug locally. With serverless, testing and debugging the APIs is never straight forward as there is no Local server where the APIs can be hosted.

After a bit a reasearch I found the combination of the serverless-offline plugin with Visual Studio Code to be the best solution for testing and debugging the application.

Steps to run the Application

The application connects to a Local Dynamo DB connection.

  1. Pull the code.
  2. Open the console and navigate to the folder where the code is present.
  3. Resolve the dependencies - npm install.
  4. Start DyananoDB on your local machine.
  5. Open the project in Visual Studio Code.
  6. Select the Start Severless run configuration, in the Debug section.
  7. Start and application, and now you are good to go.
  8. :-)

About

This is a sample project made on the Server Framework, with DynaomoDB as the backend with Dynamoose as the ORM. This project is debuggable on VSCode. This can be used as a started project for any API implementations .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published