Giter Club home page Giter Club logo

app-rdfa-analyzer's Introduction

RDFA Analyzer

What's included?

This repository harvest two setups. The base of these setups resides in the standard docker-compose.yml.

  • docker-compose.yml This provides you with the backend components.
  • docker-compose.dev.yml Provides changes for a good development setup.
    • publishes the backend services on port 80 directly, so you can run ember serve --proxy http://localhost,
    • publishes the database instance on port 8890 so you can easily see what content is stored in the base triplestore.

Running and maintaining

General information on running and maintaining an installation

Running your setup

Running the regular setup

docker-compose up

The stack is built starting from mu-project.

OpenAPI documentation can be generated using cl-resources-openapi-generator.

Running the dev setup

First install git-lfs (see https://github.com/git-lfs/git-lfs/wiki/Installation)

Execute the following:

  # Make sure git-lfs is enabled after installation
  git lfs install

  # Clone this repository
  git clone https://github.com/lblod/app-rdfa-analyzer.git

  # Move into the directory
  cd app-rdfa-analyzer

  # Start the system
  docker-compose -f docker-compose.yml -f docker-compose.dev.yml up

Wait for everything to boot to ensure clean caches. You may choose to monitor the migrations service in a separate terminal to and wait for the overview of all migrations to appear: docker-compose logs -f --tail=100 migrations.

Once the migrations have ran, you can start developing your application by connecting the ember frontend application to this backend.

Upgrading your setup

Once installed, you may desire to upgrade your current setup to follow development of the main stack. The following example describes how to do this easily for both the demo setup, as well as for the dev setup.

Upgrading the dev setup

For the dev setup, we assume you'll pull more often and thus will most likely clear the database separately:

  # Bring the application down
  docker-compose -f docker-compose.yml -f docker-compose.dev.yml down
  # Pull in the changes
  git pull origin master
  # Launch the stack
  docker-compose -f docker-compose.yml -f docker-compose.demo.yml up

As with the initial setup, we wait for everything to boot to ensure clean caches. You may choose to monitor the migrations service in a separate terminal to and wait for the overview of all migrations to appear: docker-compose logs -f --tail=100 migrations.

Once the migrations have ran, you can go on with your current setup.

Cleaning the database

At some times you may want te clean the database and make sure it's in a pristine state.

  # Bring down our current setup
  docker-compose -f docker-compose.yml -f docker-compose.dev.yml down
  # Keep only required database files
  rm -Rf data/db
  git checkout data/db
  # Bring the stack back up
  docker-compose -f docker-compose.yml -f docker-compose.dev.yml up

Make sure to wait for the migrations to run.

app-rdfa-analyzer's People

Contributors

claire-lovisa avatar nvdk avatar

Watchers

Aad Versteden avatar Pieter Colpaert avatar  avatar James Cloos avatar Boris De Vloed avatar Erika Pauwels avatar Dieter Peirs avatar  avatar Laurent Deketelaere avatar Jeremie S. avatar Michaël Dierick avatar  avatar Dries Hugaerts avatar Ben avatar Iulian Andriescu avatar Sergey Andreev avatar Riad Abdallah avatar Oscar Rodriguez Villalobos avatar Mehran Naghizadeh 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.