Giter Club home page Giter Club logo

ac-ng's Introduction

Ac-Ng

Atlassian Connect Express (ACE) Angular Style

This library for Angular 7.x is designed to connect your Angular application to your JIRA or Confluence instance out-of-the-box. Under the hood, it splices the atlassian-connect-express library into your webpack-dev-server so developmental deployment is as simple as running ng serve after setting up your credentials.json file. It also automatically inserts the Atlassian Javascript API so your app can make cross-domain calls from inside its iframe. On top of all that, this library provides a type-safe automatically-generated API service through which your app can make all necessary calls to the JIRA or Confluence instance.

Quickstart

Install prerequisites:

npm i jsdom @angular/cdk

On a fresh (or existing) Angular app, run

ng add ac-ng

Along with modifying your app's main module, index.html, and package.json files, this will copy several files into your project's root directory: webpack.config.js, config.js, credentials.json, and atlassian-connect.json.

The only file you need to edit right off-the-bat is credentials.json

credentials.json

{
  "hosts": {
    "your-instance-name.atlassian.net": {
      "product": "jira",
      "username": "Your username",
      "password": "Your API Token from https://id.atlassian.com/manage/api-tokens"
    }
  }
}

If you haven't already, go to https://id.atlassian.com/manage/api-tokens and register yourself a new API token, copy it and paste it into the password field. You will also need to put the email address you use to access your Atlassian site in username. Directly under hosts, change your-instance-name.atlassian.net to match the hostname of your instance. Save this file.

Go to your instance's 'Manage Apps' page, click on the 'Settings' link directly underneath the 'User Installed Apps' table and enable 'Development Mode'.

Start your Angular dev server in the normal way

ng serve

And watch for the line that states that your plugin was registered successfully.

Now, if you go to your instance's home page, you should see your shiny new plugin link right above the 'Jira Settings' link!

Click on it and you should see your app!

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.