Go to file
lenrsmith 380cc605d5 Merge pull request 'Fix handling of https on backend calls. FE should be able to handle either' (#24) from hotfix/handle-https into develop
Reviewed-on: #24
2021-08-18 17:48:45 +00:00
app add link to OpenGNT 2021-08-14 13:37:26 -05:00
config Fix handling of https on backend calls. FE should be able to handle either 2021-08-18 12:45:06 -05:00
public Add responsive mobile screenshot 2021-07-15 10:57:30 -05:00
support Got navigation working 2020-10-04 16:58:28 -05:00
tests Setup fetching commentary intros and articles 2021-05-26 16:53:40 -05:00
vendor Initial Commit from Ember CLI v3.20.0 2020-08-21 15:13:47 -05:00
.editorconfig Initial Commit from Ember CLI v3.20.0 2020-08-21 15:13:47 -05:00
.ember-cli Initial Commit from Ember CLI v3.20.0 2020-08-21 15:13:47 -05:00
.env.deploy.environment.EXAMPLE Add an example .env.deploy file that was previously ignored 2021-04-08 12:16:53 -05:00
.eslintignore Updated ember to 3.25.3 2021-04-08 09:22:27 -05:00
.eslintrc.js Updated ember to 3.25.3 2021-04-08 09:22:27 -05:00
.gitignore Updated ember to 3.25.3 2021-04-08 09:22:27 -05:00
.prettierignore Updated ember to 3.25.3 2021-04-08 09:22:27 -05:00
.prettierrc.js Updated ember to 3.25.3 2021-04-08 09:22:27 -05:00
.template-lintrc.js Updated ember to 3.25.3 2021-04-08 09:22:27 -05:00
.travis.yml Initial Commit from Ember CLI v3.20.0 2020-08-21 15:13:47 -05:00
.watchmanconfig Initial Commit from Ember CLI v3.20.0 2020-08-21 15:13:47 -05:00
README.md Add deploy instructions to the README 2021-04-08 09:15:03 -05:00
ember-cli-build.js Updated ember to 3.25.3 2021-04-08 09:22:27 -05:00
package.json Remove ember-cli-deploy-gzip to avoid clashes with SRI 2021-04-08 14:24:57 -05:00
testem.js Updated ember to 3.25.3 2021-04-08 09:22:27 -05:00
yarn.lock Remove ember-cli-deploy-gzip to avoid clashes with SRI 2021-04-08 14:24:57 -05:00

README.md

gwt-frontend

This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • cd gwt-frontend
  • npm install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

The project uses ember-cli-deploy-simply-ssh to handle automated deployments to the production server. In order to deploy a build, you need to have SSH access to the host server and an ssh key setup for authentication. Instructions for setting up an ssh key on your local machine can be found at https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent (only follow the instructions for 'Generating a new SSH key'. To get your public key installed on the server you will need to contact the hosting administrator.

Once your key is setup and installed on the host server, you will need to add a file named .env.example.production with the following contents:

SSH_HOST=server_host_name
SSH_PORT=server_port
SSH_USER=server_user
SSH_KEY=/Users/yourname/.ssh/your_private_key

Change the variables to your required settings, but do not commit the file to the repo. ember-cli-deploy-simply-ssh is able to handle SSH password authentication as well, but you will need to investigate that on your own.

Once your configuration is set, run

ember deploy production --activate

This command will create a new revision on the server and activate it. If you run without the --activate option you will need to activate the revision manually by running

ember deploy:activate production --revision revision_number

revision_number will look something like 53b49825426ef9fa12a24254afa45e55.