Upload your pictures to the cloud
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
tmp
vendor/assets
.buildpacks
.env.sample
.gitignore
.rspec
.rubocop.yml
.ruby-version
.travis.yml
CHANGELOG.md
Dockerfile
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru
package.json
yarn.lock

README.md

Picture

Build Status Code Climate Code Coverage

Picture (https://pi.ctu.re) is a website where you can share your pictures and pay for the data stored and transferred. The code is open source so you can also host your own instance.

Picture

Development

All the data is contained in a PostgreSQL database.

The main website is a rails app:

$ git clone https://github.com/vinc/pi.ctu.re
$ cd pi.ctu.re
$ cp .env.sample .env
$ yarn install
$ bundle install
$ rails db:setup
$ rails generate admin
$ rails server

And images are delivered by a node app:

$ git clone https://github.com/vinc/infra.stru.ctu.re
$ cd infra.stru.ctu.re
$ cp .env.sample .env
$ yarn install
$ yarn start

A local instance can also be run using Docker:

$ git clone --recursive https://github.com/vinc/stru.ctu.re
$ cd stru.ctu.re
$ docker-compose up
$ docker-compose exec web rails db:setup
$ docker-compose exec web rails generate admin

In all cases a web server is listening at http://localhost:3000

License

Copyright (c) 2011-2018 Vincent Ollivier. Released under MIT.