New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

demo-shopping-service

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

demo-shopping-service

Provides shopping suggestions based on a given location

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-58.33%
Maintainers
1
Weekly downloads
 
Created
Source

Demo Shopping Service

AWS lambda function that provides wardrobe suggestions based on the current weather at a location.

Online Demo
Running Locally

The NPM package contains both the client and the server code. Install with: npm i demo-shopping-service

AWS Lambda Function (Service)
  1. Change directory to server: cd service

  2. Install the dependencies: npm install

  3. Run all tests: npm run test

Deploying Service on Your Own Amazon Web Services
  1. Create IAM user with API access and put the user in the "administrator" policy.

  2. Install the servrless NPM package

    npm i serverless -g

  3. Configure serverless credentials

    serverless config credentials --provider aws --key AKIAIOSFODNN7EXAMPLE --secret wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY

  4. Deploy

    serverless deploy

  5. Run:

    serverless invoke -f suggest -l -p .\src\data\zipCode.json serverless invoke -f suggest -l -p .\src\data\zipCodeExtended.json serverless invoke -f suggest -l -p .\src\data\zipCodeInvalid.json

Client (Angular)
  1. Change directory to client: cd .\client
  2. Install the dependencies: npm install
  3. Run the client: ng serve
  4. Browse to http://localhost:4200
Technologies

Keywords

FAQs

Package last updated on 19 Jul 2017

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