Giter Site home page Giter Site logo

pabtc's People

Contributors

jtibble avatar

Watchers

 avatar

pabtc's Issues

Basic API-key Flow

  1. User Created
  2. User calls /users/[id]/createAPIKey
  3. Service creates secret UUID and stores it in DB, and returns to user. This key can only be generated ONCE. Repeat attempts to generate API key will fail. Warn the user appropriately.
  4. User sends API key in header for requests that require permissions. (SSL will encrypt headers later)
  5. Service checks key against db for protected services and allows/disallows the action.

Registration Tests

Need tests for following scenarios:

  1. Tournament does not exist
  2. Tournament has no room
  3. Tournament has incorrect status
  4. User is already registered to tournament

REST service: Create User

Creates User, requiring:

  • Username
  • Password
  • Timezone
  • Payout Address

Returns API key for calling non-public REST services as that user

Create Mod UI

Create simple PA PAMM-listed Mod to call REST services and retrieve/display data.

REST service: Get Tournaments

Returns list of tournaments and all relevant details:

  • Name
  • Participants
  • Status (Open for Registration, Registration Closed, Underway, Paying Out, Completed)
  • Fee
  • Start/End Date
  • URL
  • Host
  • Format

Refactor MongoDB "Registration" Collections

Change "Registrations" collection into TournamentUsers collection. When a user registers for a tournament, create a record in that collection that will store the status of the registration, as well as the mapping from tournament-to-user and vice-versa.

Use this collection to do a parallel-search when fetching tournaments and users.

REST service: Register User to Tournament

Begins process of joining a user to a tournament.

If the tournament is free-to-join, and there are open spaces, then the user is added.

If the tournament is full, the registration is rejected

If the tournament has a buy-in, then it starts the buy-in flow

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.