Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lucianopaci/nodeshop-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lucianopaci/nodeshop-server

Project that simulates Orders and Emails from a business or shop. It allows to create orders via API that are sent to a queue so they can be consumed later to create emails and send them to a dummy inbox.

  • 3.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Node Shop

Project that simulates Orders and Emails from a business or shop. It allows to create orders via API that are sent to a queue so they can be consumed later to create emails and send them to a dummy inbox.

What is used?

  • Node.js
  • Express
  • AWS SQS
  • Mongo
  • Mongoose

Architecture

architecture

Setting up the configuration

This project uses nconf to handle configuration files in a hierarchical way. It will merge the configs between your ${environment}.yaml and default.yaml, giving a higher priority to whatever is added in the ${environment}.yaml file.

It is recommended to create a local.yaml inside the config folder. This file is ignored and won't be commited to Github.

  • You will need to obtain your AWS CLIENT ID and AWS SECRET ID and add them in the config/local.yaml

    • You don't need to add them if you have them configured in your CLI
  • You will need to create a queue in AWS SQS. Here is explained how. Get the URL and add it to the config/local.yaml

  • You will need to create an account in Mailtrap to use an Email Sandbox for tests. In there, you should get all the SMTP Settings as described below and add them in the config/local.yaml

SMTP settings

How to run it?

If you created a config/local.yaml file, then run:

npm run local

If you didn't, then run:

npm run dev

The API will be exposed in the PORT 3000

Postman Collection

https://documenter.getpostman.com/view/2992116/UzBnpmNY

FrontEnd App

Project created with https://createapp.dev/webpack/react--babel--chai--cleanwebpackplugin--copywebpackplugin--css--mocha--postcss--react-hot-loader--tailwind-css--typescript


Based of: AWS-SQS Tutorial

https://stackabuse.com/message-queueing-in-node-js-with-aws-sqs/

FAQs

Package last updated on 28 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc