rubyforgood / pantry_scheduler

MIT License
7 stars 13 forks source link

Build Status Stories in Ready

NOTE: THIS PROJECT IS ON HOLD DUE TO NEW USDA REGULATIONS REQUIRING THE ELIZABETH HOUSE TO USE GOVERNMENT PROVIDED SOFTWARE.

pantry_scheduler

Tracking issues in priority can be found here https://waffle.io/rubyforgood/pantry_scheduler.

Scheduling system for Elizabeth House Food Pantry. This app will allow volunteers to log in and create appointments for clients. Other volunteers will log in and check clients in. Reports will be generated and mailed monthly, quarterly and yearly.

Development

Install Postgres using Postgres.app and run it to get your database up and running.

We're using Ruby 2.4.1. If you don't yet have a method for installing/managing Ruby versions jgaskins recommends RVM.

With RVM installed, type

$ rvm use 2.4.1

If you don't have Ruby 2.4.1 installed, RVM will give you instructions for installing it (after which you should retry the above command).

Clone the repo:

$ git clone https://github.com/rubyforgood/pantry_scheduler.git && cd pantry_scheduler

Install the gems:

$ bundle install

Create and migrate your development database:

$ bundle exec rake db:setup

This command will also create a development user for you to login as with the following credentials:

email: admin@example.com
password: abc123

Install node and yarn

$ brew install node yarn

Run the Rails Server

$ rails s

Running the front-end React application:

$ yarn install
$ ./bin/webpack-dev-server
navigate to localhost:3000 in the browser

* Webpack error **

Resolving webpack error after running rails s and navigating to localhost:3000:

$ Run ./bin/rails webpacker:install and ./bin/yarn install
$ Run bin/webpack-dev-server

Close your terminal

$ Run rails s again