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

Commit

Permalink
Add dockerized setup manual to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Sokolov committed Mar 9, 2019
1 parent b9e49ff commit b20d787
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`

Expand All @@ -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:

Expand Down

0 comments on commit b20d787

Please sign in to comment.