Coolpics is an open source platform for creating photo-sharing site that allows its users to share pictures on the app, as well as through a variety of other social networking platforms, such as Facebook, Twitter, Tumblr, and etc. It's like 9gag.com :)
- Ruby 2.7.1
- Ruby on Rails 6.0.3
- PostgreSQL 9.5
- jQuery
- Twitter Bootstrap 3
- Gem:
- devise | Authentication
- pg | PostgreSQL library for Ruby
- carrierwave | Image upload management
Before you get started, the following needs to be installed:
- Ruby. Version 2.7.1 is currently used and we don't guarantee everything works with other versions. If you need multiple versions of Ruby, rbenv is recommended.
- RubyGems
- Bundler:
gem install bundler
- Git
- A database. Only PostgreSQL 9.5 has been tested, so we give no guarantees that other databases (e.g. MySQL) work. If you're using OS X and have Homebrew installed, install it with
brew install postgresql
- Redis. Version 4.0.9 has been used successfully, but newer versions should work as well. If you're using OS X and have Homebrew installed, install it with
brew install redis
- [elasticsearch] (https://www.elastic.co/products/elasticsearch). If you're using OS X and have Homebrew installed, install it with
brew install elasticsearch
- Imagemagick. If you're using OS X and have Homebrew installed, install it with
brew install imagemagick
- Get the code. Clone this git repository:
git clone git://github.com/omkz/coolpics.git
cd coolpics
- Install the required gems by running the following command in the project root directory:
bundle install
- Create and initialize the database:
bundle exec rake db:migrate
- Start the development server:
rails s
Our docker implementation is incomplete and may not work smoothly. Please kindly report any issues and any contribution is welcomed!
- Install
docker
anddocker-compose
git clone [email protected]:omkz/coolpics.git
- run
docker-compose build
- run
docker-compose run web rails db:setup
- run
docker-compose up
- That's it! Navigate to
localhost:3000
The best way to contribute is to do one of the following :
- Creating tests
- Refactoring
- Coding features
- Correcting logged issues
- Correcting my English! (I'm an Indonesian, so don't hesitate to fix my sentences or whole paragraphs.)
Coolpics is open source under the MIT license. See LICENSE for details.