Skip to content

aboev/photobook-server

Repository files navigation

Photobook

Photobook

Photobook is an image sharing social service. You can express your feelings, emotions and memories; draw inspiration from public photo channels - animals, nature, travel, technology and much more.

Client Repository

Server Repository

Setup guide

You may deploy server in docker container or install manually (requires some ruby/rails experience).

Docker setup (Recommended)

alt text

Photobook supports cloud storage, push notifications and sms verification. You may optionally select required features. If cloud storage is not configured, images are hosted locally.

  1. Register aws web services account, activate S3 storage and get AccessKeyID/SecretAccessKey (for S3 cloud storage)
  2. Register google developer account, activate google cloud messaging API and get GoogleApiKey (for push notifications)
  3. Register smsc account and get login/pw or implement your custom gateway in lib/sms.sh (for sms verification)
  4. Rename config/config.yml.example -> config/config.yml and replace config values in square brackets
  5. Install docker-compose (Follow instructions on docker website)
sudo apt-get install docker-compose (Ubuntu 16.04)
  1. Deploy server in docker container
docker-compose run -p 80:80 -d photobook

Now, your server will be available on port 80. Tune up the endpoint on client side and you are ready to go!

Manual setup

  1. Prerequisites: imagemagick, postgresql, redis
  2. Rename config/database.yml.example -> config/database.yml and replace username/password
  3. Refer to install.sh (Step-by-step for Ubuntu 14.04)
bundle install
QUEUE=* rake environment resque:work
rails server

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published