Giter Site home page Giter Site logo

rti's Introduction

Ready To Innovate

Ready to Innovate tests organization's readiness to adopt emerging technologies. Ready to Innovate shows that a holistic strategy can allow organizations to make the changes they need to meet new demands in the IT industry.

Running Locally

Requirements

  • PHP
  • MySQL
  • Apache

Setup Database

The dbconnect.php uses the following environment variables to resolve your mysql credentials.

export MYSQL_SVC=localhost
export MYSQL_USER=replace_me
export MYSQL_PASSWORD=replace_me
export MYSQL_DATABASE=spider

Once the above envs are set, we can create the tables required:

curl https://raw.githubusercontent.com/redhat-cop/rti/master/database.sql | mysql --host=${MYSQL_SVC} --database=${MYSQL_DATABASE} --user=${MYSQL_USER} --password=${MYSQL_PASSWORD}

Setup captcha

This app uses a captcha in register.php to ensure no robot creation of users. To register with recaptcha v2, visit: https://www.google.com/recaptcha/intro

export CAPTCHA_SITEKEY=replace_me
export CAPTCHA_SECRETKEY=replace_me

Securimage: A PHP class dealing with CAPTCHA images, audio, and validation https://www.phpcaptcha.org/documentation/quickstart-guide/

Deploying on OpenShift

NOTE: The .openshift/3-app.yml Secret/captcha needs updating before deploying.

oc new-project rti

oc create -f .openshift/1-mysql.yaml
oc rollout status dc/mysql --watch=true

oc create -f .openshift/2-db-init.yaml

oc create -f .openshift/3-app.yml
oc rollout status deployment/rti --watch=true

open "https://$(oc get route rti -o jsonpath={.spec.host})"

rti's People

Contributors

boogiespook avatar garethahealy avatar lbac-redhat avatar mmusaji avatar semat-exists avatar testaccountforthis avatar timjackson avatar

Stargazers

 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.