No description, website, or topics provided.
JavaScript HTML CSS
Latest commit 6f73d23 Jun 24, 2016 @makmanalp makmanalp Merge branch 'beta'
Permalink
Failed to load latest commit information.
app
config
public
tests
vendor
.bowerrc
.editorconfig
.ember-cli
.env.colombia
.env.deploy
.env.example
.env.mexico
.env.peru
.gitignore
.jshintignore
.jshintrc
.travis.yml
.watchmanconfig
Brocfile.js
README.md
bower.json
circle.yml
package.json
testem.json

README.md

atlas-subnational-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
  • change into the new directory
  • npm install
  • bower install

Running / Development

Running on API [Depricated]

  • clone https://github.com/cid-harvard/colombia
  • get correct db file from Mali
  • cd into the the repo
  • put db file in colombia/database.db
  • run make dummy && make dev

  • In a seperate terminal window cd into the ember app

  • Run ember s --proxy http://127.0.0.1:8001/

Code Generators

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

Running Tests

  • ember test
  • ember test --server

Subfolder

In the config/enviroment.js file adjust the baseURL variable in the var ENV object for the enviroment e.g. enviroment === 'production'

Building

Current ENV files

  • colombia
  • mexico
  • peru

To use a country

  • run ember build -e <enviroment> e.g. ember build -e colombia

OR

  • copy .env.<country> as .env

To add a country env.

  • Create .env.<country>
  • Add to Brocfile.js dotEnv path to country

SUB-FOLDERS

  • Set ROOT_URL to what the sub dir should be in the correct .env file before building

  • ember build (development) defaults to .env

  • ember build --environment production (production) defaults to .env

  • To build the app, have the correct .env file in the root dir see '.env.example'

  • run ember build -e <enviroment> e.g. ember build -e colombia
  • By default the built app is in the dist/ folder
  • Locales follow country-lang syntax. e.g. usa-en, usa-es or mex-en, mex-es
  • ember cli i18n is used for the internalization.

  • Required ENV vars

    • GA (for Google Analytics)
    • DEFAULT_LOCALE
    • OTHER_LOCALE
    • API_URL
    • DOWNLOAD_URL(root name for file downloads)

Heroku deploy

Further Reading / Useful Links