Coder Social home page Coder Social logo

sdk-apps's Introduction

Example applications for the Boundless Web SDK

Travis CI Status

Online demos

Check out our online demos.

Use node version LTS (Long Term Support) through nvm (https://github.com/creationix/nvm).

nvm install --lts

How to use

cd %examplename%
nvm use --lts
npm i
npm run build
npm start

npm run build will create the minified js file for production use

npm start will start up the debug server at http://localhost:3000/

npm run package will generate a production version of the application.

Applications that need access to a local GeoServer will need to run (in addition to npm start):

npm run start:proxy this will start up the application at http://localhost:4000/ and will have a proxy to a local geoserver on port 8080 (proxy-config.json).

Linking to a github directory of the sdk

Add a NPM link to the SDK release directory. Go to the directory of your SDK git checkout and type:

npm run release
cd release
npm link

Add a NPM link to the SDK node_modules/react subdirectory:

cd ../node_modules/react
npm link

Add a NPM link to the SDK node_modules/openlayers subdirectory:

cd ../openlayers
npm link

Add the links to your SDK apps. After changing the current working directory to your sdk app type:

npm link @boundlessgeo/sdk
npm link react
npm link openlayers

Once complete go to the root of your sdk checkout and run the watchdog.

npm start

This will be the result on file system (check with something like: ls -l ~/.nvm/versions/node/v6.9.2/lib/node_modules/):

lrwxrwxrwx  1 bartvde bartvde   53 jan  4 17:59 openlayers -> /home/bartvde/opengeo/git/sdk/node_modules/openlayers
lrwxrwxrwx  1 bartvde bartvde   48 jan  4 17:59 react -> /home/bartvde/opengeo/git/sdk/node_modules/react

The sdk symlink will be in a subdirectory called @boundlessgeo (ls -l ~/.nvm/versions/node/v6.9.2/lib/node_modules/@boundlessgeo/):

lrwxrwxrwx 1 bartvde bartvde   37 apr 24 13:39 sdk -> /home/bartvde/opengeo/git/sdk/release

sdk-apps's People

Contributors

bartvde avatar carlylanglois avatar cuttlefish avatar frankrowe avatar jjmulenex avatar julieboundless avatar malaretv avatar nstires-boundless avatar tbarsballe avatar thirystheory avatar wnordmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdk-apps's Issues

training/app-basemap does not display

Prepping app-basemap onto new training VM has two problems:

  1. Looks like app uses a CDN, cannot use that for teaching on discounted network

  2. app does not display console:

app.js:605 Uncaught TypeError: e.getSource is not a function
    at t.value (app.js:605)
    at t.value (app.js:605)
    at new t (app.js:285)
    at ReactCompositeComponentWrapper._constructComponentWithoutOwner (app.js:2723)
    at ReactCompositeComponentWrapper._constructComponent (app.js:2723)
    at ReactCompositeComponentWrapper.mountComponent (app.js:2723)
    at Object.mountComponent (app.js:2825)
    at ReactCompositeComponentWrapper.performInitialMount (app.js:2723)
    at ReactCompositeComponentWrapper.mountComponent (app.js:2723)
    at Object.mountComponent (app.js:2825)
value @ app.js:605
value @ app.js:605
t @ app.js:285
_constructComponentWithoutOwner @ app.js:2723
_constructComponent @ app.js:2723
mountComponent @ app.js:2723
mountComponent @ app.js:2825
performInitialMount @ app.js:2723
mountComponent @ app.js:2723
mountComponent @ app.js:2825
mountChildren @ app.js:2803
_createInitialChildren @ app.js:2731
mountComponent @ app.js:2731
mountComponent @ app.js:2825
performInitialMount @ app.js:2723
mountComponent @ app.js:2723
mountComponent @ app.js:2825
performInitialMount @ app.js:2723
mountComponent @ app.js:2723
mountComponent @ app.js:2825
performInitialMount @ app.js:2723
mountComponent @ app.js:2723
mountComponent @ app.js:2825
mountComponentIntoNode @ app.js:2801
perform @ app.js:2871
batchedMountComponentIntoNode @ app.js:2801
perform @ app.js:2871
batchedUpdates @ app.js:2767
batchedUpdates @ app.js:2835
_renderNewRootComponent @ app.js:2801
_renderSubtreeIntoContainer @ app.js:2801
render @ app.js:2801
1.boundless-sdk/components/HomeButton @ app.js:2
s @ app.js:1
e @ app.js:1
(anonymous) @ app.js:1
app.js:2735 Uncaught TypeError: Cannot read property '__reactInternalInstance$3c26if9n3ve' of null
    at Object.getClosestInstanceFromNode (app.js:2735)
    at findParent (app.js:2781)
    at handleTopLevelImpl (app.js:2781)
    at ReactDefaultBatchingStrategyTransaction.perform (app.js:2871)
    at Object.batchedUpdates (app.js:2767)
    at Object.batchedUpdates (app.js:2835)
    at dispatchEvent (app.js:2781)
getClosestInstanceFromNode @ app.js:2735
findParent @ app.js:2781
handleTopLevelImpl @ app.js:2781
perform @ app.js:2871
batchedUpdates @ app.js:2767
batchedUpdates @ app.js:2835
dispatchEvent @ app.js:2781

Production version

How can I generate a production version of the application that need access to Geoserver ?

we shouldn't need to manually create build dir

> browserify -g [envify --NODE_ENV production] -p [minifyify --no-map --exclude node_modules/openlayers/dist/ol.js] app.jsx -o build/app.js

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open 'build/app.js'
    at Error (native)

Cannot load loader script

i found myself in trouble after 3 hours of no succes with the get started i follow all the steps you have there
npm run build npm start npm run package
...and everything looks fine but when i open the browser in localhost:3000, there's nothig to see and i get in the console this log
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/view.js".
localhost:3000:29
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/kinetic.js".
localhost:3000:29
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/interaction/property.js".
localhost:3000:29
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/interaction/interaction.js".
localhost:3000:29
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/interaction/doubleclickzoom.js".
localhost:3000:29
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/events/condition.js".
localhost:3000:29
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/interaction/pointer.js".
localhost:3000:29
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/interaction/dragpan.js".
localhost:3000:29
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/interaction/dragrotate.js".
localhost:3000:29
Ha fallado la carga del <script> con origen "http://localhost:3000/loader.jsC:/Users/HP/Desktop/Proyecto%20Web%20Mapping%20Cantera/sdk-examples/sdk-apps/quickview/node_modules/openlayers/src/ol/render/box.js".

Dont know if im doing something wrong, or missing some step but please helpe me to get started! than you

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.