Giter VIP home page Giter VIP logo

jsdo-node's Introduction

Project Description

This project centers around a node server that takes data stored in a MongoDB and exposes it under the jsdo protocol. The serviceURI is http://nodejsdo-21944.onmodulus.net and the catalogURI is http://nodejsdo-21944.onmodulus.net/catalogURI. Each database requires a catalog that describes the properties of each data point and the functions available for manipulating the data. This project also contains a node file that tests the server to make sure it works properly. This can be viewed at http://angulardemo-21580.onmodulus.net/test. This data is also formatted using AngularJS at http://jsdo-node-angular-22603.onmodulus.net/.

Running the app

  1. (Optional) Make a MongoDB database on Modulus and fill in config.json. You can skip steps 1 & 2 if you already have your own database
  2. (Optional) Run fillDB.js to fill your MongoDB with test data
  3. Run npm install
  4. Run the application by invoking node app.js
    To test the app
  5. Fill in your service and catalog uri's in jsdoTester/app.js
  6. Run npm install in jsdoTester/
  7. Run jsdoTester/app.js using node
  8. Navigate to localhost:3000/test to see if your app is working.
    To view AngularJS use of app
  9. Navigate to localhost:3000. It should show a filled in table with the same data as in step 8.

Directory Descriptions

app.js                  --> main app for Service URI
config.json             --> configuration details for MongoDB server
data.json               --> test data used by the app
fillDB.js               --> code for filling in the database with the data in data.json
LICENSE.txt             --> MIT License
package.json            --> for npm
README.md               --> this file
Catalog/                --> contains the data catalog for the sample data used
  catalog.json          --> data catalog for the sample data used in the project
jsdoTester/             --> for testing the functionality of the jsdo server
  app.js                --> route for serving JSON. This is simulating Corticon.
  package.json          --> for npm
  progress.js           --> Progress code for working with JSDO
  progress.session.js   --> Progress code for working with JSDO
  XMLHttpRequest.js     --> Wrapper for js to emulate the browser XMLHttpRequest object
  public/               --> Displays test data in a prettier interface using AngularJS
    app.css             --> CSS file for making the HTML pretty
    main.jade           --> Jade that contains the rendered view of the app
    rest.js             --> Queries jsdoTester/app.js and sends data to main.jade

Relevant Blog Posts

Displaying OpenEdge Data in an AngularJS Web App
JSDO

License

MIT

jsdo-node's People

Contributors

davidcinglis avatar mendoncakeegan avatar pelegri 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.