japinol7 / teams-generator-services

Some microservices related to the generation of RPG teams. This project uses AWS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Teams Generator Services

Some microservices related to the generation of RPG teams. This project uses AWS S3 and System Params.

Disclaimer: These services are meant as simple examples of

AWS lambda services. The state of the system is persisted
using json files, one for the contestants and another one
for the generated teams.
Therefore, this solution does not mean to be scalable nor concurrent.

See the readme.md file on the Services readme file for more details.

Usage

This is a recommended basic flow to use these services:

  • Clear contestants

    • service: clear-contestants
      • key: clearAllContestants: Removes all contestants.
  • Clear teams

    • service: clear-teams
      • key: clearAllTeams: Deletes all generated teams.
  • Add contestants to the system

    • service: add-contestants
      • key: addContestants: Adds contestants, so they can be chosen for a team.
      • Note: You can add as many as 100 contestants each time you execute it.
  • Generate teams

    • service: generate-teams
      • key: teamsToCalculate: How many teams to generate.
      • key: numMembersForTeam: How many members for team.
      • Notice that this service is not accumulative. It always generates all the teams.
        More info in the readme of the service.

How to execute this lambda from a local development environment

  • Go to the lambda folder in your system
  • If you want to add additional debug info to the lambda response:
    $ export JAP_IS_ADD_DEBUG_INFO_TO_RESPONSE=true
  • Execute the lambda function script:
    $ python lambda_function.py

About

Some microservices related to the generation of RPG teams. This project uses AWS


Languages

Language:Python 74.1%Language:Shell 22.1%Language:Dockerfile 3.8%