Skip to content

Local development instance setup

Philipp Dolif edited this page Aug 15, 2021 · 3 revisions

The local development setup consists of the las2peer services and the demo frontend.

las2peer services

To run all the services that are necessary, you may use the following docker compose file. It starts the las2peer-user-information-service together with the las2peer-contact-service and the las2peer-project-service. A y-websockets-server is also included. In the given configuration, the project-service provides one system, named "test".

version: "3.9"
services:
    user-information-service:
        image: registry.tech4comp.dbis.rwth-aachen.de/rwthacis/las2peer-userinformation-service:master
        ports:
            - 8080:8080
            - 9011:9011
        environment:
            HTTP_PORT: "8080"
            LAS2PEER_PORT: "9011"
    contact-service:
        image: registry.tech4comp.dbis.rwth-aachen.de/rwthacis/las2peer-contact-service:master
        depends_on:
            - user-information-service
        ports:
            - 8081:8081
            - 9012:9012
        environment:
            BOOTSTRAP: user-information-service:9011
            HTTP_PORT: "8081"
            LAS2PEER_PORT: "9012"
    project-service:
        image: registry.tech4comp.dbis.rwth-aachen.de/rwthacis/las2peer-project-service:develop
        depends_on:
            - user-information-service
        ports:
            - 8082:8082
            - 9013:9013
        environment:
            HTTP_PORT: "8082"
            LAS2PEER_PORT: "9013"
            BOOTSTRAP: user-information-service:9011
            SYSTEMS: "{\"test\":{\"visibilityOfProjects\":\"all\"}}"
            NEW_GROUP_AGENT: "true"
            SERVICE_PASSPHRASE: newPassword
    yjs:
        depends_on:
            - project-service
        image: registry.tech4comp.dbis.rwth-aachen.de/rwthacis/y-websockets-server-project-service:project-service
        ports:
            - 1234:1234
        environment:
            PROJECT_SERVICE_URL: http://project-service:8082

Demo Frontend

Go into the /frontend directory and run npm install and npm run serve. This will start a demo of the frontend for the project service. This demo is already configured to use the system named "test" which is also defined for the project-service in the docker-compose file.

Clone this wiki locally