Skip to content
/ ttfm Public

🍍 A Hawaii farmer's market locator built using AngularJS 1.x and Ruby on Rails for HACC 2016 hackathon.

License

Notifications You must be signed in to change notification settings

JGefroh/ttfm

Repository files navigation

ttfm

🍍 HACC Farmer's Market Project

thumb-lg

Required environment variables:

  • ADMIN_CODE_TO_IMPORT
  • ADMIN_CODE_TO_EXPORT
  • ADMIN_CODE_TO_UPDATE

Environment setup (Mac OSX - may apply to other environments):

Frontend

  1. Install npm
  2. Install IDE of your choice
  3. Install brunch globally.
  • npm install -g brunch
  • If you get errors installed global packages, run sudo chown -R $USER /usr/local/ (see below).
  1. Install bower globally.
  • npm install -g bower
  • If you get errors installed global packages, run sudo chown -R $USER /usr/local/ (see below).
  1. Clone the repository (git clone GITHUB_URL_HERE).
  2. Install local npm package files in the frontend folder.
  • cd into the project directory's frontend folder and run npm install.
  1. Install local npm package files.
  • cd into the project directory's frontend folder and run bower install.
  1. Launch your local environment
  • Run brunch watch --server from within the frontend directory.
  • Go to localhost:3333 on your web browser to view the project.
  • Changes will be automatically detected.

Issues

npm errors

npm has permission issues depending on how it is installed. If installed via Homebrew, it should be OK. Otherwise, you may need to research how to fix it depending on the issue you're having. Some of the following links below may help:

Backend

  1. Install Ruby.
  2. Install Ruby on Rails.
  3. Install postgres or DB.
  4. Set environment variables, or use a program like foreman with .env files.
  5. Run it with rails s, bundle exec rails , foreman start -f Procfile-dev or equivalent command.
  6. Run postgres eg. postgres -D /usr/local/var/postgres

Build for production:

  1. Run brunch build --production.
  • Currently supports environment-specific variables.

About

🍍 A Hawaii farmer's market locator built using AngularJS 1.x and Ruby on Rails for HACC 2016 hackathon.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •