Code Monkey home page Code Monkey logo

masterthesis's Introduction

Master Thesis

by Adrien Widart

Description

Agenda, Carpooling and Rental are three services for scalable and extensible social networks. The development is based on the DEVI approach. See the thesis for all explanations.

Foundation comes from a previous thesis (see the repository for more details).

The files .env and docker-compose.yml have all the information required to generate the Docker images.

Installation

To clone the project and include each module, enter:

git clone --recurse-submodules https://github.com/adwid/MasterThesis

Then, go inside the directory.

Run the following script to install all Node.js dependencies:

./install.sh

Eventually, to build all Docker images (this takes several minutes):

address=$(ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n1)
sed -i -E "s/(HOST=([0-9]+\.)+[0-9]+)/HOST=$address/" .env
sudo docker-compose pull && sudo docker-compose build --parallel

N.B.: The output will not be clearly legible because the images are built in parallel. To follow the build of each image, remove the option --parallel (this operation will obviously take more time).

Execution

To run all microservices, enter the following command:

sudo docker-compose up

The three services will be then available.

Testing

It is possible to test the three modules thanks to the following command:

mocha test_all_modules.js

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.