You don't like cooking that much and got sick of most local resturants; yet you still need to eat everyday.
I love cooking, whether it's fancy dinner cuisine or just sunday afternoon desserts; and I'm open to the idea of inviting a guest to taste my cooking!
What if there is a community platform that gap the supply and demand of homemade cooking?
You get...home cooked meal and a new friend!
I get...someone who appreciate my cooking and a new friend!
This is the golden opportunity to cure starvation, longingness and socialize with your neighbors!
-
Fork this repository
-
Download to your desktop or your preferred directory
-
In terminal
cd desktop/couchfoodiebundle install --without production
- You'll need to make a
.envfile under root directory to hold the env variables. - Under desktop/couchfoodie
cp .env.example .env
-
You'll need to set up postgres database on your local machine
brew updatebrew install postgresqlFor more detailed installation guide, see here
- This app uses facebook login for user authentication.
- The
.envfile include theFACEBOOK_APP_IDandFACEBOOK_APP_SECRETfor a fb_login app development version, it should work out of box. If for some reason it stopped working, you can follow instructions here to set up a new facebook login app.
-
This app uses Amazon S3 for photo storage. You'd need to set up a seperate amazon S3 account. AWS allows free account and usage.
-
Register a free account if you don't have one yet. Make a bucket to store photos just for this app.
-
After logging in S3, generate ACCESS KEY ID and SECRET ACCESS KEY under
Services -> IAM -> Users -> your username -> Security Credentials -
Retrieve the following information:
- Your AMAZON S3 BUCKET NAME, as a string.
- Your S3 ACCESS KEY ID
- Your S3 SECRET ACCESS KEY
- Your S3 Bucket AWS ASSET HOST URL (this can be found by going
bucket -> Properties, it looks something likehttps://couchfoodie.s3.amazonaws.com)
- Enter the those information to the appropiate matching lines in your
.envfile
- This app uses carrierwave for photo processing.
gem install carrierwave- Carrierwave uses ImagMagick to do the ACTUAL photo processing work
brew install imagemagick
- This app uses
carrierwave-awsas adaptor for carrierwave + Amazon S3 gem install carrierwave-aws
- This app uses sidekiq for background processing of photo.
gem install sidekiq
- Sidekiq uses redis for data storage, so you'll need to install and run a redis instance locally.
- Run
brew install redis
- This app uses Mandrill for email server.
- Visit Mandrill site, register a free account and retrieve USERNAME and PASSWORD, input those values in your
.envfile.
-
Create empty database by running
bundle exec rake db:setup -
Generate secrets.yml file by running
bundle exec rake secret:create_file -
Run the database migration by running
bundle exec rake db:migrate -
Run redis instance locally: Open one terminal window, run
redis-server -
This app uses Procfile to start both web server and worker server, run
gem install foremanto make sure you have foreman installed. -
Open another terminal window, run
foreman start -
In browser, go to
http://localhost:5000