Coder Social home page Coder Social logo

mbti-docker's Introduction

MBTI

This app is built using:

Step to runs fullstack app

  • download or clone the current repo
  • run git submodule update --init --recursive to pull the submodules from repository.
  • if this is the first time you run the app, please run docker-compose run --rm php composer install to install Backend's dependencies using composer.
  • make sure the docker has permission to write mbti-api\runtime\cache, mbti-api\runtime\debug, and mbti-api\runtime\logs folder
  • open the file mbti-ui\src\environments\environment.ts, and make sure the environment.api variable points to the correct ip address. If you use different IP/domain for docker, then please replace 127.0.0.1 to your address. No need to change if you use the default docker configuration.
  • run docker-compose up -d to run the docker instance.
  • open url http://127.0.0.1:4201/ to open the UI, or replace the IP with your address/domain.
  • Sometimes, when you run the app for the second time, the UI won't start. Solution: just run docker-compose build after you run docker-compose up -d in order to trigger the UI to start.
  • run docker-compose down to stop the docker.

Run unit test on MBTI calculation

  • Currently, there is only one unit test that only calculates the MBTI result on the backend.
  • The file is located in mbti-api\tests/unit/models/ParticipantTest.php
  • make sure you have already installed the Backend's dependencies. Otherwise, just run docker-compose run --rm php composer install to install using composer.
  • to execute, run docker-compose run --rm php /app/vendor/bin/codecept run tests/unit/models/ParticipantTest.php.

Requirement Assumption and Future Improvement

Assumption and Future Improvement

mbti-docker's People

Contributors

sulha199 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.