Skip to content

Commit

Permalink
Merge pull request #201 from ecaldwell/dev/Tooling
Browse files Browse the repository at this point in the history
New dev tooling and build process
  • Loading branch information
rwmajor2 authored Sep 1, 2017
2 parents 92b9931 + 4d2d057 commit fe39614
Show file tree
Hide file tree
Showing 6 changed files with 6,453 additions and 226 deletions.
172 changes: 0 additions & 172 deletions Gruntfile.js

This file was deleted.

27 changes: 7 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,30 @@ This app uses the [ArcGIS REST API](http://www.arcgis.com/apidocs/rest/) to prov
1. Fork and then clone the repo -OR- [download a recent release](https://github.com/Esri/ago-assistant/releases).
2. Run and try the samples.

#### Using Grunt
This project uses [Grunt](http://gruntjs.com/) to automate building the application for deployment on a web server. It does a handful of things for you that will make life easier when setting up this application.
#### Building the app
This project uses npm scripts to automate building and optimizing the application. It does a handful of things for you that will make it easier to configure and deploy this application to your own web server.

* Download and install [node.js](http://nodejs.org/).
* Download or clone this project to your machine.
* In your terminal or command prompt run `npm install -g rollup` to install the global rollup.js dependency.
* Go to the project folder in your terminal or command prompt and run `npm install` to install the project dependencies.
* [Register the app in your portal](http://server.arcgis.com/en/server/latest/administer/linux/add-items.htm#ESRI_SECTION1_0D1B620254F745AE84F394289F8AF44B) to obtain an `appId` for using the OAuth dialog to log in. Be sure to add the correct redirect URI (the location where your app will be hosted).
* Update [`config.json`](config.json) with your portal's url and new `appId`.
* Run `grunt dev` from the command line to run the app locally at `127.0.0.1:8080` for development and testing. This build includes intermediate build files and source maps.
* Run `grunt` from the command line to generate an optimized build in the `build` folder for deploying the app to a web server.
* Update the config section in [`package.json`](package.json) with your portal's url and new `appId`.
* Run `npm run build` to generate an optimized build in the `build` folder.
* You can run the app locally for development and testing with the command `npm run serve`. Your browser should automatically open to `localhost:8080`.
* Deploy the contents of the `build` folder to your own web server to distribute the app throughout your organization.

## Requirements

* Notepad or your favorite HTML editor
* Web browser with access to the Internet

## Third Party Libraries Used
* [jQuery](http://jquery.com/)
* [Bootstrap](http://getbootstrap.com/)
* [jQuery-UI](http://jqueryui.com/)
* [D3](http://d3js.org/)
* [mustache.js](https://github.com/janl/mustache.js)
* [Cal-Heatmap.js](http://kamisama.github.io/cal-heatmap/)
* [NProgress.js](http://ricostacruz.com/nprogress/)
* [highlight.js](http://highlightjs.org/)

## Resources

* [ArcGIS REST API](http://www.arcgis.com/apidocs/rest/)
* [ArcGIS Online](http://www.arcgis.com/home/)
* [ArcGIS Blog](http://blogs.esri.com/esri/arcgis/)
* [twitter@esri](http://twitter.com/esri)

## Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.
Find a bug or want to request a new feature? Please let us know by [submitting an issue](https://github.com/Esri/ago-assistant/issues/new).

## Contributing

Expand Down
4 changes: 0 additions & 4 deletions config.json

This file was deleted.

Loading

0 comments on commit fe39614

Please sign in to comment.