Code Monkey home page Code Monkey logo

online-self-certification-web-app's Introduction

This is the source code for the OpenChain Online Self-Certification WebApp.

The application is located at https://certification.openchainproject.org

The application is primarily driven from a database where all questions and all answers are stored.

The UI uses jQuery and a jQuery UI front-end. The primary style sheet is located in the WebContent/resources/style directory.

The front end Internationalization uses the I18Next Framework. The JSON File for Internationalization is located in the WebContent/resources/locales/lang/translation file.

The back end Internationalization uses Java's built in support for localization. The message resource files are located in the resources directory. The messages_xx.properties files contain there translations where xx is the language for the translation.

To add a language:

  1. Add a new translation JSON file in the WebContent/resources/locales/[lang]/translation directory where [lang] is the IETF RFC 5646 language tag
  2. Add a new translation messages_[lang].properties file in the resource directory where [lang] is the IETF RFC 5646 language tag
  3. Add the language to the LANGUAGES array in the WebContent/resources/global.js JavaScript file

Please feel free to test this code, submit issues, and help make Self-Certification around the OpenChain Specification easier for everyone.

Setting Up Development Environment

The OpenChainCertification run on the AWS Elastic Beanstalk runtime environment. The original application was developed using Eclipse with the AWS SDK for Java plugins. The following outline the steps used to create an Eclipse based development environment.

  1. Install or Update Eclipse for Java EE: http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr2
  2. Install the AWS Toolkit for Eclipse: https://aws.amazon.com/eclipse/
  3. Clone this project
  4. Create a new Eclipse Faceted project 4.1 Change the default location to the location of the cloned project 4.2 Select the Dynamic Web Module, Java 1.7 and JavaScript facets
  5. Right click on the project and select build path/add libraries 5.1 Add the AWS SDK for Java as a library 5.2 Add the Server library/AWS Elastic Beanstalk J2EE Runtime library 5.2 Add Junit / JUnit 4 library 5.3 Add all of the jar files from WebContent/WEB-INF/lib to the build path
  6. Right click on the test folder and add as a source directory to the build path
  7. Configure a PostgreSQL server on local host and create a database with the configuration specified in the org.openchain.certification.TestHelper.java file.
  8. You should be able to run the unit tests successfully
  9. At this point, there should be no compiler errors and you should be able to successfully run the unit tests To run the actual application locally, create a Tomcat 7 server in eclipse and run the application under the Tomcat server You may need to create a database or modify some of the database parameters.

online-self-certification-web-app's People

Contributors

goneall avatar haksungjang avatar mlinksva avatar openchain-visolve avatar shanecoughlan avatar theopenchainproject avatar zvr 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.