Giter Club home page Giter Club logo

seneca-stats-server's Introduction

Welcome to Seneca Stats Service!

Instructions

This repo will allow you to spin up an AWS ecosystem consisting of an API gateway with specific endpoints, a Lambda to handle the API calls, and a DynamoDB with a single table to persist the required stats.

After installing, building and deploying, the tests will confirm full functionality of the system as per the Swagger doc present

You will need AWS CLI and CDK installed on your machine, with 'cdk bootstrap aws://ACCOUNT-NUMBER/REGION' having been run

npm install
npm run build
cdk deploy

set the resultant API URL to environment variable STATS_API (WITHOUT the trailing /)

npm run test

Assumptions I made

The database and code have been optimised for this simple requirement. Hypothetical tests are always difficult, and so please feel free to ask me if you'd like me to introduce more sophistication in terms of things like:

  • multiple tables
  • a relational DB solution with an ORM
  • considerations around throughput and table sizes and performance
  • different environments for staging and prod

Although the swagger was specific for http and localhost, I implemented online in AWS with API gateway There is no authentication, I am happy to implement if you would like I added a delete endpoint to the Swagger and API to keep the DB maintained

seneca-stats-server's People

Contributors

brucelarasoft avatar

Watchers

Bruce Martin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.