Skip to content

Demonstration of Requirements understanding, proposing a solution and implementation by using the latest tools and techniques.

Notifications You must be signed in to change notification settings

naeemark/klarna-serverless

Repository files navigation

Klarna Serverless

Demonstration of Requirements understanding, proposing a solution and implementation by using the latest tools and techniques.



What is this repository for?

  • This app is built as assignment for Klarna.
  • Adds nosetests for unit testing.
  • CI/CD Demonstration
  • AWS Resources Monitoring and maintenance of multiple versions
  • Code quality measures using SonarCloud.io
  • Adds different libs/packages to enhance the application quality and performance.
  • Version 1.0.0

Problem Statement:

Problem

Proposed Solution:

Deployment:

Deployment

Development Cycle:

Deliverable Content

How do you get set up?

How to set up

To set-up the project locally you need to clone this repo, from master or develop branch or some latest TAG

Test App

  • Activate Virtual Environment venv/bin/activate
  • Install dependencies pip install -r requirements.txt
  • Run nosetests -sv --with-xunit --xunit-file=nosetests.xml --with-xcoverage --xcoverage-file=coverage.xml --cover-package=src --cover-branches to see the unit test execution report
  • Local lambda invoke sls invoke local -f factorialV1 -p .test_events/factorial.json
  • Deploy changes directly from local: sls deploy

Configuration

Pre-reqs

Requirements

Major Libraries and tools included:

  • serverless
  • venv
  • sonar-scanner

Auth

  • No auth is used for this version, though we can do it using authorizer on API Gateway level
  • Another possible way is to use JWT

Code Quality

Distribution

Monitoring

  • AWS Dashboard is created
  • Several widgets are created to show the performance of API's and Lambdas

Contribution guidelines

  • Forks are always appreciated

Screenshots

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

About

Demonstration of Requirements understanding, proposing a solution and implementation by using the latest tools and techniques.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages