Code Monkey home page Code Monkey logo

ios-short-s3-users's Introduction

Users Microservice

The users microservice for the Game Night app. The users 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 user 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-users's People

Contributors

jarrodparkes avatar sudkul avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-short-s3-users's Issues

Master branch failing to build.

After pulling and creating both .private-key.pem, .public-key.pem, and Makefile-secrets the repository is failing to build.

  1. Run make images_build
  2. Run make env_start
  3. Run make web_build

I believe the ibmcom/kitura-ubuntu:latest image may be using a newer version of swift as a possible issue?

Lesson 5: 11 — Make failing

The make commands required to complete Lesson 5: 11 are failing.

Step to reproduce:

  1. Clone the repo git clone [email protected]:udacity/ios-short-s3-users.git
  2. Checkout the simple branch: git fetch, git checkout simple
  3. Create Makefile-secrets
  4. Start environment make env_start
  5. Build and run micro service make web_build_run (Fails)

This is the error:

...
 Compile CHTTPParser http_parser.c
In file included from /src/.build/checkouts/Perfect-LinuxBridge.git--5093920901842136105/LinuxBridge/LinuxBridge.c:2:
/src/.build/checkouts/Perfect-LinuxBridge.git--5093920901842136105/LinuxBridge/include/LinuxBridge.h:6:10: fatal error: 'uuid/uuid.h' file not found
#include <uuid/uuid.h>

And in context:

root@1eb4d1431b07:/src# make web_build_run
swift build -Xlinker -L/usr/local/lib
cat: .public-key.pem: No such file or directory
cat: .private-key.pem: No such file or directory
Fetching https://github.com/IBM-Swift/Kitura.git
Fetching https://github.com/nicholasjackson/swift-mysql.git
Fetching https://github.com/PerfectlySoft/Perfect-Crypto.git
Fetching https://github.com/IBM-Swift/HeliumLogger.git
Fetching https://github.com/IBM-Swift/Kitura-net.git
Fetching https://github.com/IBM-Swift/SwiftyJSON.git
Fetching https://github.com/IBM-Swift/Kitura-TemplateEngine.git
Fetching https://github.com/IBM-Swift/LoggerAPI.git
Fetching https://github.com/IBM-Swift/BlueSocket.git
Fetching https://github.com/IBM-Swift/CCurl.git
Fetching https://github.com/IBM-Swift/BlueSSLService.git
Fetching https://github.com/IBM-Swift/CEpoll.git
Fetching https://github.com/IBM-Swift/BlueSignals.git
Fetching https://github.com/IBM-Swift/OpenSSL.git
Fetching https://github.com/nicholasjackson/swift-libmysql
Fetching https://github.com/PerfectlySoft/Perfect-Thread.git
Fetching https://github.com/PerfectlySoft/PerfectLib.git
Fetching https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git
Fetching https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
Cloning https://github.com/IBM-Swift/LoggerAPI.git
Resolving https://github.com/IBM-Swift/LoggerAPI.git at 1.7.1
Cloning https://github.com/PerfectlySoft/Perfect-Crypto.git
Resolving https://github.com/PerfectlySoft/Perfect-Crypto.git at 1.1.1
Cloning https://github.com/PerfectlySoft/PerfectLib.git
Resolving https://github.com/PerfectlySoft/PerfectLib.git at 2.0.11
Cloning https://github.com/nicholasjackson/swift-libmysql
Resolving https://github.com/nicholasjackson/swift-libmysql at 0.1.0
Cloning https://github.com/IBM-Swift/BlueSSLService.git
Resolving https://github.com/IBM-Swift/BlueSSLService.git at 0.12.62
Cloning https://github.com/IBM-Swift/Kitura-net.git
Resolving https://github.com/IBM-Swift/Kitura-net.git at 1.7.18
Cloning https://github.com/IBM-Swift/BlueSocket.git
Resolving https://github.com/IBM-Swift/BlueSocket.git at 0.12.74
Cloning https://github.com/IBM-Swift/BlueSignals.git
Resolving https://github.com/IBM-Swift/BlueSignals.git at 0.9.50
Cloning https://github.com/nicholasjackson/swift-mysql.git
Resolving https://github.com/nicholasjackson/swift-mysql.git at 1.8.2
Cloning https://github.com/IBM-Swift/HeliumLogger.git
Resolving https://github.com/IBM-Swift/HeliumLogger.git at 1.7.1
Cloning https://github.com/IBM-Swift/OpenSSL.git
Resolving https://github.com/IBM-Swift/OpenSSL.git at 0.3.7
Cloning https://github.com/PerfectlySoft/Perfect-Thread.git
Resolving https://github.com/PerfectlySoft/Perfect-Thread.git at 2.0.12
Cloning https://github.com/IBM-Swift/SwiftyJSON.git
Resolving https://github.com/IBM-Swift/SwiftyJSON.git at 17.0.0
Cloning https://github.com/IBM-Swift/Kitura.git
Resolving https://github.com/IBM-Swift/Kitura.git at 1.7.9
Cloning https://github.com/IBM-Swift/CCurl.git
Resolving https://github.com/IBM-Swift/CCurl.git at 0.4.1
Cloning https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
Resolving https://github.com/PerfectlySoft/Perfect-LinuxBridge.git at 2.0.2
Cloning https://github.com/IBM-Swift/CEpoll.git
Resolving https://github.com/IBM-Swift/CEpoll.git at 0.1.1
Cloning https://github.com/IBM-Swift/Kitura-TemplateEngine.git
Resolving https://github.com/IBM-Swift/Kitura-TemplateEngine.git at 1.7.2
Cloning https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git
Resolving https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git at 2.0.4
Compile LinuxBridge LinuxBridge.c
Compile COpenSSL openssl.c
Compile CHTTPParser utils.c
Compile CHTTPParser http_parser.c
In file included from /src/.build/checkouts/Perfect-LinuxBridge.git--5093920901842136105/LinuxBridge/LinuxBridge.c:2:
/src/.build/checkouts/Perfect-LinuxBridge.git--5093920901842136105/LinuxBridge/include/LinuxBridge.h:6:10: fatal error: 'uuid/uuid.h' file not found
#include <uuid/uuid.h>
         ^
1 error generated.
error: terminated(1): /usr/bin/swift-build-tool -f /src/.build/debug.yaml main
make: *** [web_build] Error 1

dealing with user creation

Facebook account kit:
- there’s no profile associated with the SMS login mechanism
- either (1) build that microservice and give it to them or (2) we use the old oauth mechanism and do a crud-based profile

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.