Git Product home page Git Product logo

cvc-webclient-angularjs's Introduction

CVC-webclient

Source code for the CVC web client

Deployment

Deployment of CVC-webclient is easy since it is a static web app. You only need to do the following:

  1. Copy the files under the app directory to the web server. The directory path in milner is /var/lib/tomcat7/webapps/app
  2. Update the configurations.js file to specify the api URL for the kind server:
// production api Url
// kindEnvironment.apiUrl = "https://kind.cs.uiowa.edu/cvcservices/";

// development api Url
kindEnvironment.apiUrl = "http://localhost:8080/";
  1. Change the base tag in index.html to reflect the deployment path. For milner the deployment path is http://kind.cs.uiowa.edu/cvc-app/ therefore, the base would be /cvc-app/
<head>
    <base href='/cvc-app/'/>
    ...
</head>

Development

The web client is using AngularJS framework which needs an http web server for loading the app files. Any http web server can work. Alternatively the kind2-webclient is configured to use a simple static web server http-server. The following steps are only needed in the development environment with http-server :

  1. Install Node.js
  2. Run npm install to install the required packages
  3. Run npm start to start the http-server. Since port 8080 may be allocated to the kind server, the http-server is configured to use port 8000. To access the kind2-webclient use the url http://localhost:8000
  4. Update the app/configurations.js file to specify the api URL for the kind server
  5. If the kind server is in a different server or has a different origin, browsers will complain about same-origin policy and block AngularJS Ajax requests. Any extension that enables cross-origin resource sharing CORS can be used for development. For chrome you can use this plugin

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.