vdbalbom / photogallery

This is a basic photo gallery web site.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Photo Gallery

About

This is a basic photo gallery web site.

Install

Requirements (and how to install them on Ubuntu 16.04)
  • git
$ sudo apt-get update
$ sudo apt-get install git
  • Docker
$ sudo apt-get update
$ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
$ sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
$ sudo apt-get update
$ sudo apt-get install -y docker-engine

Verify if it is working:

$ sudo systemctl status docker
  • docker-compose
$ sudo apt-get update
$ sudo apt-get -y install python-pip
$ sudo pip install docker-compose
  • Make
$ sudo apt-get update
$ sudo apt-get install make

Clone this repository

$ git clone https://github.com/vdbalbom/photogallery.git

Get into the project file

$ cd /photogallery

Run

To run
$ make run

or

To run detached
$ make run-detached

To test

$ make test-photogallery

To get inside the container

$ make inside-container

Info

  • Run on port 80.
  • To admin login go to /admin.
  • To contributor login go to /login.
  • By default installation admin has login: admin and password: admin.
  • Sample contributors:
    • login: smartpig, password: 12345
    • login: hipstercat, password: 12345
    • login: happydog, password: 12345

More info

  1. There is an admin which can create/delete contributors, change site's name and description, and change its own settings: login and password.
  2. Contributors can create/edit/delete its own photos and can change its settings (name, email, description, facebook, instagram and tumblr links, profile picture, login and password).
  3. Photos have title, image, optional description and optional tags.
  4. It is possible to access gallery filtered by:
  • all contributors and all tags;
  • a specific contributor and all tags;
  • all contributors and a specific tag;
  • a specific contributor and a specific tag

About

This is a basic photo gallery web site.


Languages

Language:Ruby 66.5%Language:HTML 21.1%Language:CSS 8.4%Language:CoffeeScript 1.6%Language:JavaScript 1.2%Language:Makefile 0.7%Language:Nginx 0.4%Language:Shell 0.3%