Git Product home page Git Product logo

ohmypocket's Introduction

OhMyPocket --- opensource port of getpocket.com

bookmark your favorite article and explore Serendipity

website: http://ohmypocket.lazyang.com/

chrome extension

Short version (deploy the docker)

under development....

Long version:

install 3rd python libaraies

pip install -r dev_requirements.txt

compile less and require.js

lessc and r.js is required

fab compile_less && fab compile_js

run rq

Make sure your redis is runing...

python myworker.py

install libmysqlclient-dev to install mysql-python

sudo apt-get install libmysqlclient-dev

sudo apt-get install libxml2-dev libxslt1-dev python-dev

syncdb

python manage.py syncdb

run developing server

python manage.py runserver

deploy note

gunicorn blue.wsgi --bind 127.0.0.1:8000 --pid /tmp/gunicorn.pid

supervisor config

[program:pocket]
command=/home/yang/workspace/random-read/env/bin/gunicorn blue.wsgi --bind 127.0.0.1:8989 --pid /tmp/gunicorn.pid;
directory=/home/yang/workspace/random-read
user=yang

autostart=true
autorestart=true


[program:myworker]
; from http://python-rq.org/ 
; Point the command to the specific rqworker command you want to run.
; If you use virtualenv, be sure to point it to
; /path/to/virtualenv/bin/rqworker
; Also, you probably want to include a settings module to configure this
; worker.  For more info on that, see http://python-rq.org/docs/workers/
command=/home/yang/workspace/random-read/env/bin/rqworker
process_name=%(program_name)s-%(process_num)s
environment = DJANGO_SETTINGS_MODULE=blue.settings
; If you want to run more than one worker instance, increase this
numprocs=3

; This is the directory from which RQ is ran. Be sure to point this to the
; directory where your source code is importable from
directory=/home/yang/workspace/random-read

; RQ requires the TERM signal to perform a warm shutdown. If RQ does not die
; within 10 seconds, supervisor will forcefully kill it
stopsignal=TERM
; These are up to you
autostart=true
autorestart=true

TODO

  • user can choose the language he interested in
  • cross sub-domain auth
  • reposive design
  • make donation button :D

ohmypocket's People

Contributors

zhy0216 avatar alexriedler avatar egor-n avatar

Watchers

Tang Zheng'en avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.