🍍 HACC Farmer's Market Project
Required environment variables:
- ADMIN_CODE_TO_IMPORT
- ADMIN_CODE_TO_EXPORT
- ADMIN_CODE_TO_UPDATE
- Install npm
- Install IDE of your choice
- Install brunch globally.
npm install -g brunch
- If you get errors installed global packages, run
sudo chown -R $USER /usr/local/
(see below).
- Install bower globally.
npm install -g bower
- If you get errors installed global packages, run
sudo chown -R $USER /usr/local/
(see below).
- Clone the repository (
git clone GITHUB_URL_HERE
). - Install local npm package files in the
frontend
folder.
cd
into the project directory'sfrontend
folder and runnpm install
.
- Install local npm package files.
cd
into the project directory'sfrontend
folder and runbower install
.
- Launch your local environment
- Run
brunch watch --server
from within thefrontend
directory. - Go to
localhost:3333
on your web browser to view the project. - Changes will be automatically detected.
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:
- Install Ruby.
- Install Ruby on Rails.
- Install postgres or DB.
- Set environment variables, or use a program like
foreman
with.env
files. - Run it with
rails s
,bundle exec rails
,foreman start -f Procfile-dev
or equivalent command. - Run postgres eg.
postgres -D /usr/local/var/postgres
- Run
brunch build --production
.
- Currently supports environment-specific variables.