From b20d78799416ece6e2ea2bc7d582b5f261c675ba Mon Sep 17 00:00:00 2001 From: Sergey Sokolov Date: Sat, 9 Mar 2019 16:28:17 +0300 Subject: [PATCH 1/4] Add dockerized setup manual to readme --- README.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b47a60b..b8b761e 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,28 @@ -# postpost [![Build Status](https://travis-ci.com/PiterPy-Meetup/postpost.svg?branch=master)](https://travis-ci.com/PiterPy-Meetup/postpost) +# postpost [![Build Status](https://travis-ci.com/piterpy-meetup/postpost.svg?branch=master)](https://travis-ci.com/piterpy-meetup/postpost) -metameta. Service for posting to social media +metameta -## Required -python3.6, redis +Service for posting to various social medias from one place ## Quick Start + +### Docker-based setup +Prerequisites: docker-compose, `.env` file in the project root + +Start containers: + +`docker-compose up -d` + +Create superuser: + +`docker-compose exec api pipenv run python postpost/manage.py createsuperuser` + +### Without Docker +Prerequisites: Python 3.6, `.env` file in the project root, Redis running on port `6379` and PostgreSQL on port `5432` + `pipenv install` -`export PYTHONPATH=/full/path/postpost` +`export PYTHONPATH=/full/path/to/postpost` `export DJANGO_SETTINGS_MODULE=main.settings` @@ -22,6 +36,8 @@ Add basic user `python manage.py createsuperuser` +### Usage + Login to [admin interface](http://localhost:8000/admin/oauth2_provider/application/) and create OAuth Application with these params: From a7b6f07b5aeea082b50128c571bec6f49a5b3616 Mon Sep 17 00:00:00 2001 From: Dima Boger Date: Sat, 9 Mar 2019 18:31:42 +0300 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8b761e..ea1d302 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# postpost [![Build Status](https://travis-ci.com/piterpy-meetup/postpost.svg?branch=master)](https://travis-ci.com/piterpy-meetup/postpost) +# postpost [![Build Status](https://travis-ci.com/piterpy-meetup/postpost.svg?branch=develop)](https://travis-ci.com/piterpy-meetup/postpost) metameta From 7f83e15912865e558960a5f39afc94e3227ef54d Mon Sep 17 00:00:00 2001 From: Sergey Sokolov Date: Sat, 9 Mar 2019 18:38:25 +0300 Subject: [PATCH 3/4] Add docker tag description to readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index ea1d302..693ccbd 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ Service for posting to various social medias from one place ### Docker-based setup Prerequisites: docker-compose, `.env` file in the project root +Specify Docker tag (see [list of tags](https://hub.docker.com/r/piterpy/postpost/tags) on DockerHub): + +`export TAG=dev` + Start containers: `docker-compose up -d` From f2fd6601967950b5f1906bd02ae4ef098e331286 Mon Sep 17 00:00:00 2001 From: Sergey Sokolov Date: Wed, 13 Mar 2019 14:04:01 +0300 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 693ccbd..f8d3dbd 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Prerequisites: Python 3.6, `.env` file in the project root, Redis running on por Add basic user -`python manage.py createsuperuser` +`pipenv run python manage.py createsuperuser` ### Usage