Web viewer for Arctic Scholar
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
helpers
src
.buildpacks
.gitignore
.jshintrc
Brocfile.js
LICENSE
Procfile
README.markdown
package-lock.json
package.json
preview.js
server.js

README.markdown

Arctic Scholar Portal

The Arctic Scholar Portal is an integration of the Arctic Scholar backend service and PolarMap.js for the frontend geographic viewer. It is a JavaScript Single-Page Application.

Development Environment

The app is JavaScript and runs under Node.js. To start, install the base Node packages:

$ npm install

Now you can start the local development server with Broccoli:

$ broccoli serve

That's all. The server is now running at http://localhost:4200/.

Testing

TODO

Deploying

This app is configured to run on Heroku-like platforms. This makes deployment as simple as a git push. In this instance, we are using Dokku. In the following examples, sarcee refers to an SSH alias for the cloud instance hosting the application.

Start by setting up a Dokku instance on a server. Once it is online, you should be able to add it as a remote repository, and tell Dokku the app's name is arctic-scholar-portal:

$ git remote add dokku dokku@sarcee:arctic-scholar-portal

Next, push master to that remote host. Note that Dokku only supports receiving from master at this time.

$ git push dokku master

Dokku will then build and deploy a server, automatically restarting the existing instance if necessary. Any time you need to push a new version, just push to the dokku remote on git.

There are also some configuration options that may be useful with Dokku. For example, defining the default host:

$ ssh dokku@sarcee domains:add arctic-scholar-portal records.arcticconnect.ca records.arcticconnect.org arctic-scholar.gswlab.ca

This tells the nginx instance running in Dokku to redirect requests to http://arcticscholar.arcticconnect.ca to this Node.js server.

License

See LICENSE.

Authors

James Badger jpbadger@ucalgary.ca