Code Monkey home page Code Monkey logo

ios-short-s3-events's Introduction

Events Microservice

The events microservice for the Game Night app. The events microservice specification is defined using the OpenAPI (Swagger) Specification and hosted on Apiary.io.

How to Use

There are Docker images for the development web server and database environments, Dockerfile-web and Dockerfile-db. You can build the images using the make targets defined in Makefile. For example, if you'd like to build and start a MySQL server with seeded event data, then use the db_run_seed target:

$ make db_run_seed

During development, we recommend that you run three Docker containers:

  1. database
  2. web server
  3. MySQL shell

These containers can be run using the following make targets:

# run (seeded) database container
$ make db_run_seed

# run web server container (starts an interactive shell)
$ make web_dev

# run MySQL shell container
$ make db_connect_shell

Note: Since some of the make targets start interactive shells, you will need to run the above commands from different terminal windows.

How to Test

Makefile targets are also included for manual and automated testing with CircleCI.

  • web_unit_test - run unit tests (assumes you are already in the web server environment)
  • web_functional_test - run functional tests (assumes you are already in the web server environment)
  • web_unit_test_docker - create a web server container and then run unit tests
  • web_functional_test_docker - create a web server container and then run functional tests

ios-short-s3-events's People

Contributors

jarrodparkes avatar sudkul avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-short-s3-events's Issues

Returning paged event data is inconsistent

Right now when iterating through a result set, the looping can be stopped before additional event rows are analyzed.

Try requesting data for event 1 using the seeded database:

curl localhost/events/1

Notice that only the first (if any) RSVP is listed. Event 1 should have two rsvps.

RSVP parsing is broken

When parsing event results, we are tracking the userIDs that have been seen before. But these userIDs are global and therefore when the same userID appears for a different event, it can be skipped. Suggest tracking userIDs with a dictionary.

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.