GithubHelp home page GithubHelp logo

cbccharlie / oaw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ctt-gob-es/oaw

4.0 0.0 1.0 397.35 MB

Rastreador Observatorio de Accesibilidad Web

License: European Union Public License 1.2

Java 63.24% CSS 1.13% HTML 6.63% Dockerfile 0.01% JavaScript 28.95% Makefile 0.01% Shell 0.01% Less 0.02% PHP 0.01%

oaw's Introduction

OAW

Rastreador Observatorio de Accesibilidad Web

This repository contains 3 applications:

OAW (Observatorio de Accesibilidad Web)

The application code is distributed in several maven projects:

  • common: library with common functions
  • crawler: web crawler
  • intavcore: analyzer core code
  • oaw: "father" project to generate all the libraries and dependencies
  • portal: web project of the accessibility observatory

To compile the application, we will use maven (version 3.0.0 or higher). It will be necessary to download a number of dependencies from the central repositories so it needs to be properly frozen. It may be necessary to configure the proxy or a mirror:

To do this, inside the oaw directory we will execute the following command so that it builds us the complete project:

mvn clean install -P development -DskipTests

If everything goes well, a war will be generated in the portal/target folder which will be the one we should display this war in the webapps folder of the tomcat server.

Requeriments

Currently OAW is deployment under this configuration:

  • Java 1.8.0_202
  • Apache Tomcat 7
  • MySQL 5

This is a Maven projet that requieres version 3.0.0 or high

Instalation

You can find full documentacion (in Spanish) at https://administracionelectronica.gob.es/ctt/oaw/descargas in Rastreador OAW WCAG 2.1 section. At this moment, the last documentation avalaible can be downloaded here

MySQL Database

To fresh install execute the scripts locates in folder /portal/scripts from version 4.0.0 to higher version.

Tomcat

Create a context configuration like this in server.xml:

<Context path="/oaw" reloadable="true">
    <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" type="javax.sql.DataSource" name="jdbc/oaw" url="jdbc:mysql://<server>:<port>/<schema>"
    maxActive="100"  maxIdle="10"  maxWait="-1" validationQuery="SELECT 1 as dbcp_connection_test"
    removeAbandoned="true" testOnBorrow="true"
    timeBetweenEvictionRunsMillis="60000" testWhileIdle="true"                                         
    defaultTransactionIsolation="READ_UNCOMMITTED" username="<username>" password="<password>"/>
</Context>

Note to change url, port, user and password values. In folder profiles exists an example of this configuracion. Adapt to your environment.

Profiles

There are several parameters that are configurable by environment, as well as configuration files that depend on the environment. In the current project there are two default compilation profiles: development and integration.

In the oaw project's pom.xml is reflected the configuration for each profile, being possible to create new ones or take advantage of the existing ones. There are also profiles in the portal project folder.

It is necessary to review and adapt the configuration of the profiles if necessary.

External properties

In the file /portal/profiles//propertiesmanager.properties a series of properties files and their location are indicated. You should configure the files paths according to the information of this file.

  • context.xml: Database connection parameters
  • mail.properties: Mailing parameters
  • basic.service.properties: Parameters of the mail sent by the diagnostic service
  • check.descriptions.properties: Explanatory texts for problem solving included in the reports
  • check.patterns.properties: Regural expressions and validation patterns

Unsatisfied dependencies in Maven Central

Some of the links are not available in Maven's central repository. They can be downloaded at the following links:1

They need to be installed manually: https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

Motor JS

Into folder motor-js contains this tool has 3 packages:

  • proxy: entrypoint of tool. Listen for petitions http/s.
  • nginx: recivies proxy petitions and handle http and https to renderer.
  • renderer: executes https://github.com/prerender/prerender ths listen to http/s requests, renderer the page and return result html

This project is configuring to execute as docker solution

Templates

From version 5.6.0 new versions of templates are available that must be incorporated into the application.

These templates can be found in the following path -> /portal/scripts/5.6.0

  • hallazgos.odt -> Must be saved as "hallazgos" in the system
  • generica_accesible_v1.odt
  • segmentos_accesible_v1.odt
  • complejidades_accesible_v1.odt
  • evolucion_segmentos_accesible_v1.odt

oaw's People

Contributors

salvador-nasser-ctic avatar victor-cima-ctic avatar sergio-costales-ctic avatar alvaropelaezctic avatar vcima avatar fichisp avatar adminctt avatar istyf avatar danivfe avatar

Stargazers

Parallex avatar Eloy Pardo avatar Miguel Manzano García avatar Samuel avatar

Forkers

alux6

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.