Skip to content
/ poss Public
forked from fnkr/poss

Personal Object Sharing System, a little bit like a URL shortener but with the ability to share images, code and files directly. Written in Python with Flask and SQLAlchemy.

License

Notifications You must be signed in to change notification settings

sumonst21/poss

 
 

Repository files navigation

POSS - Personal Object Sharing System

Build Status

Demo

https://poss.fnkr.net
Email: demo
Password: demo
Reset: every hour

Screenshots

Screenshots

Requirements

Install

1) Clone the project and checkout the latest tag

git clone https://github.com/fnkr/POSS.git

# Windows
for /f %c in ('git rev-list --tags --max-count=1') do git checkout %c

# Linux
git checkout $(git rev-list --tags --max-count=1)

cd poss

2) Set up your environment

# Make sure that virtualenv uses a supported Python version,
# maybe you have to set the path to Python manually. For example:
# `virtualenv --python=$(which python3.4) env` or `virtualenv3.4 env`
virtualenv env

# Windows
env\scripts\pip install -r requirements.txt

# Linux
env/bin/pip install -r requirements.txt

3) Download GeoIP databse (optional)
Download and extract "GeoLite Country" and "GeoLite Country IPv6" databases and put the files GeoIP.dat and GeoIPv6.dat into the main directory. http://dev.maxmind.com/geoip/legacy/geolite/

4) Copy config.dist.py to config.py and modify as needed. List of supported Database systems.

5) Set up the database

# Windows
env\scripts\python manage.py db stamp head

# Linux
env/bin/python manage.py db stamp head

6) Run the server
You can run/test the server with:

# Windows
env\scripts\python manage.py runserver

# Linux
env/bin/python manage.py runserver

The runserver method is NOT recommended for productional use. Use a application server container like FastCGI or uWSGI instead: https://github.com/fnkr/POSS/tree/master/docs/deployment

Upgrade

1) Fetch and checkout the latest tag

git fetch --tags

# Windows
for /f %c in ('git rev-list --tags --max-count=1') do git checkout %c

# Linux
git checkout $(git rev-list --tags --max-count=1)

2) Update environment

# Windows
env\scripts\pip install -r requirements.txt

# Linux
env/bin/pip install -r requirements.txt

3) Migrate the database

# Windows
env\scripts\python manage.py db upgrade

# Linux
env/bin/python manage.py db upgrade

Command line client

There is a command line client for POSS, you can get it from here: https://github.com/fnkr/POSS-Client

Development notes

CONTRIBUTING.md

About

Personal Object Sharing System, a little bit like a URL shortener but with the ability to share images, code and files directly. Written in Python with Flask and SQLAlchemy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 57.2%
  • HTML 25.7%
  • JavaScript 10.3%
  • CSS 5.3%
  • Dockerfile 0.9%
  • Batchfile 0.3%
  • Other 0.3%