Giter Club home page Giter Club logo

resop's Introduction

crf-resop

=======

pipeline status coverage report

Install

Requirements

  • git
  • make
  • docker >= 18.06
  • docker-compose >= 1.23

Commands

Install

git clone [email protected]:crf-devs/resop.git && cd resop

# If you are on linux, just run:
make

# On MacOS, run:
make pre-configure
make configure
# Now, update the docker-compose.override.yml and the .env files to match with your host
make all

Then, go to http://resop.vcap.me:7500/.

If you want to run a symfony or a php command: bin/tools <command>, example: bin/tools bin/console

Run : after a first install

make start

Access

The project is using a Traefik proxy in order to allow access to all the HTTP services of the project. This service is listening on the 7500 port of the host. The *.vcap.me domain names are binded on localhost. In order to use them offline, you only have to add a 127.0.0.1 adminer.vcap.me resop.vcap.me traefik.vcap.me line on your /etc/hosts file.

API stack

Caution: the traefik proxy will only serve healthy containers. The api container can be unaccessible before the first healthcheck (5s).

HTTPS

The nginx container is available over HTTPS. This url must be used in order to use Facebook, Gmaps, camera...

PHP

Tools & commands

As the php-fpm docker container doesn't contain any dev tool as composer, all dev commands must be run on the tools container. For example:

bin/tools composer
bin/tools bin/console cache:clear
bin/tools # to open a shell on the tools container

Blackfire

In order to profile the php app with Blackfire, you need to have a Blackfire account, then:

  • Add your credentials in the .env file
  • Uncomment the blackfire service in the docker-compose.override.yml file
  • Uncomment the blackfire env var for the backend_php service in the docker-compose.override.yml file
  • docker-compose up -d --force-recreate backend_php blackfire
  • That's it, you can profile the app!

Tests

make test
make test-cs
make test-advanced
make test-unit
make test-unit-coverage

resop's People

Contributors

francisbesset avatar hhamon avatar kissifrot avatar mroca avatar

Watchers

 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.