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-2
npm install
In order to utilise this front-end web client, it must be pointed at an active Supplejack API service.
- rename
environment.build
toenvironment.js
- in
environment.js
:- customise
APP.host
,fastboot.hostWhitelist
to point to your Supplejack API url - customise
App.api_key
to use your Supplejack API key.
- customise
ember serve
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
ember test
ember test --server
npm run lint:hbs
npm run lint:js
npm 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
deploy
cli script inpackage.json
to ensure that it is pointing at the correct username, server, and directory. - use
npm run deploy
to deploy.
If it's the first deploy:
ssh
into your web server and navigate to the web directory- Ensure
screen
is installed on your web server screen -S fastboot
sudo 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