sj-client-2 is a front-end web client which provides a search engine for accessing DigitalNZ's Supplejack API. This client is built using the Ember.js (3.5) framework .
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
git clone <repository-url>this repositorycd sj-client-2npm install
In order to utilise this front-end web client, it must be pointed at an active Supplejack API service.
- rename
environment.buildtoenvironment.js - in
environment.js:- customise
APP.host,fastboot.hostWhitelistto point to your Supplejack API url - customise
App.api_keyto use your Supplejack API key.
- customise
ember serve- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
ember testember test --server
npm run lint:hbsnpm run lint:jsnpm run lint:js -- --fix
ember build(development)ember build --environment production(production)
This client is being deployed via scp with a node cli script. To deploy this app the same way:
- customise the
deploycli script inpackage.jsonto ensure that it is pointing at the correct username, server, and directory. - use
npm run deployto deploy.
If it's the first deploy:
sshinto your web server and navigate to the web directory- Ensure
screenis installed on your web server screen -S fastbootsudo node fastboot-server.js- detach screen
Depending on your need, other deployment methods could be used instead.
- ember.js
- ember-cli
- Supplejack
- Development Browser Extensions