Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Latest commit

 

History

History
60 lines (37 loc) · 2.2 KB

how-to-run.md

File metadata and controls

60 lines (37 loc) · 2.2 KB

OpenAddresses Submit-UI: How to Run

This document outlines the details of collaborating on this Ember application.

Prerequisites

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

Installation

  • git clone <repository-url> this repository
  • change into the new directory
  • npm install
  • bower install

Set up .env file

  • Create a .env file with export apiKey= + the aws key for uploads
  • Run source .env before serving the app

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

Building

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

Deploying

The Submit-UI app automatically deploys on Netlify. The production URL deploys from the master branch, but it is also possible to view a live site for other branches. The URL for non-master branches is https:// + branch-name + --mod.netlify.com, where you would insert the name of the branch you'd like to view before --mod.netlify.com.

Netlify also handles redirects and environment variables for the app. The .netlifyredirects file is integrated into the built app by the ember-cli-netlify Ember addon. Environment variables saved directly on Netlify provide keys for AWS that are necessary for file upload

Further Reading / Useful Links