Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

Add dockerized setup manual to readme #57

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
# 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. 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

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`

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`

Expand All @@ -22,6 +40,8 @@ Add basic user

`python manage.py createsuperuser`
teners marked this conversation as resolved.
Show resolved Hide resolved

### Usage

Login to [admin interface](http://localhost:8000/admin/oauth2_provider/application/) and create OAuth Application with
these params:

Expand Down