Code Monkey home page Code Monkey logo

nuxeo-question-sample's Introduction

nuxeo-question-sample

How to build

Build is based on Yeoman tooling that encapsulates grunt and bower to build the applicaiton.

In order to build, you have to :

  • install Yeoman (which involves installing npm, bower and grunt).

  • Download and Run a recent Nuxeo distribution (>= 5.8)

  • clone this repository

  • launch mvn clean install

  • copy the target/nuxeo-question-sample*.jar in the $NUXEO_HOME/nxserver/bundles folder

  • Launch Nuxeo

  • The application should be available at http://localhost:8080/nuxeo/question/

How to hack

  • The application is made of two parts :
    • a nuxeo server running on port 8080
    • a frontend JS app that can be serve by Nuxeo or by Node JS.

If you want to hack the frontend app, you can launch the JS app with all the web tooling that Yeoman provides.

  • go to src/main/yo
  • launch grunt server

It should open a browser on the app on port 9000. All calls to the /nuxeo/ context will be proxied to http://localhost:8080/nuxeo/. See Gruntfile.js for configuration

How it works

Grunt serves the HTML app by using NodeJS. In order to avoid CORS issues, a proxy is setup in Gruntfile.js to proxy all calls to /nuxeo to the backend Nuxeo server on port 8080

+---------+       +----------------------+  proxy    +--------------------+
| Browser | --->  | NodeJS on port 9000  |---------> | Nuxeo on port 8080 |
+---------+       |   call to /nuxeo are |           +--------------------+
                  |   proxied            |
                  +----------------------+

This means that in the code, all API calls will be done on /nuxeo without specifying a special http host.

nuxeo-question-sample's People

Contributors

ldoguin avatar dmetzler 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.