Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.58 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.58 KB

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-2023 Vincent Ollivier. Released under MIT.