Coder Social home page Coder Social logo

brandxmobile / json-service Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 1.0 42 KB

Consume any arbitrary JSON web service and render the results in a custom template

License: BSD 3-Clause "New" or "Revised" License

HTML 3.93% JavaScript 93.71% CSS 2.36%

json-service's Introduction

JON Service

Renders the response values from a JSON web service using a custom template.

Build Status

Contents

Installation

This project requires Deskpro Apps Tool to be installed alongside the other dependencies. You can install Deskpro Apps Tool either locally or globally. We recommend to install it globally so you have it always available, regardless of how many apps you develop.

To install the dependencies and Deskpro Apps Tool locally, run:

npm install && npm install --save @deskpro/apps-sdk-react && npm install @deskpro/apps-dpat   

If you already have Deskpro Apps Tool installed, run:

npm install && npm install --save @deskpro/apps-sdk-react

Development

The best way to develop is to use the specially built development server, made available by Deskpro Apps Tool. To start the server, from your project folder, run:

npm run dev

Go to your deskpro installation, login to the agent interface, and navigate to the link below:

https://your-local-deskpro.com/agent/?appstore.environment=development

Notice the appstore.environment=development query parameter that tells Deskpro to load your application from the development server

To start making changes, open the following file in your favourite editor.

src/main/javascript/App.jsx

While the development server is on, any change will cause the application to be reloaded in the Deskpro window, giving you a nice live preview.

Packaging

Once you are satisfied with your application, you will probably want to install it on your production or test installation of DeskPRO. To do that, you must package your application files in a distribution package that can be understood by DeskPRO when it will install your application,

To package the application, in your project folder run:

npm run package

This will create a dist folder inside your project folder which contains all the unpacked and compiled assets and a zip file named app.zip. This app.zip file is the one required to install your application via the DeskPro admin interface.

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.