Giter Site home page Giter Site logo

greghollenbaugh / uw-frame Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uportal-attic/uportal-app-framework

0.0 1.0 0.0 42.98 MB

An AngularJS application frame for creating uw applications

License: Apache License 2.0

JavaScript 83.10% CSS 8.28% Java 0.90% HTML 7.71%

uw-frame's Introduction

UW Frame

Build Status

codenvy factory

uw-frame can be described as the "war dependency that you will need to overlay when creating a new My UW 'App'".
uw-frame is a Servlet 2.5 web application that provides provides the primary HTML page at the root of the servlet context that hosts your AngularJS single page application. That includes the My UW header and sidebar:

uw-frame screenshot

It does still rely on /portal to be in the same container for the session information (name, server, etc...). If you want to run outside the container just remove those two dependencies and fix the URL's in the side-bar-left.html.

Requirements

Getting Started

In your existing Maven war project, add the following dependency:

<dependency>
  <groupId>edu.wisc.my.apps</groupId>
  <artifactId>uw-frame</artifactId>
  <version>x.y.z</version>
  <type>war</type>
</dependency>

(uw-frame is available in The Central Repository.)

uw-frame provides the primary HTML page at the root of the servlet context that hosts your AngularJs single page application. In order to introduce your own content, uw-frame's extension point is 'my-app/main.js'.

Start by creating the folder 'src/main/webapp/my-app' within your Maven war project, and copy uw-frame's main.js in to it. uw-frame includes RequireJS to help you load any additional JavaScript assets you wish, you'll do that in this file.

See my-app-seed for a great starter app using this frame.

Contributing

You can run uw-frame locally with the following command:

mvn install jetty:run

Common Issues

If you see an error like the following from the Maven build, it means you haven't properly installed Bower (check that it's installed and on your path):

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (default) on project uw-frame: Command execution failed. Cannot run program "bower" (in directory "/src/main/webapp"): error=2, No such file or directory -> [Help 1]

uw-frame's People

Contributors

apetro avatar jhanstra avatar jiayinjx avatar nblair avatar timlevett avatar vertein 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.