An open API service indexing awesome lists of open source software.

https://github.com/GetStream/django_twitter

An example app built using getstream.io
https://github.com/GetStream/django_twitter

Last synced: 6 months ago
JSON representation

An example app built using getstream.io

Awesome Lists containing this project

README

          

## Stream Twitter clone

This is a simple Twitter clone app built with [Stream](http://getstream.io)'s API. It shows you how you can use [GetStream.io](https://getstream.io/ "GetStream.io") to build a site similar to Twitter.

Note there is also a lower level [Python - Stream integration](https://github.com/getstream/stream-python) library which is suitable for all Python applications.

You can sign up for a Stream account at https://getstream.io/get_started.

If you're looking to self-host your feed solution we suggest the open source [Stream-Framework](https://github.com/tschellenbach/Stream-Framework), created by the Stream founders.

### Tutorial

This application is based on the [Build a scalable Twitter clone with Django and GetStream.io](https://gist.github.com/tbarbugli/97bf26f400ecf1443ef6) tutorial.

### Live Demo

You can see a live demo of this application [here](http://tw.getstream.io/).

### Heroku

The best way to try this application is via Heroku; you can deploy this example (for free) on Heroku
by pressing the Deploy button below.

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

If you prefer to run this locally then make sure to signup for GetStream's service and follow this steps:

**Install the requirements**

```
pip install -r requirements.txt
```

**Add your API keys to pytutorial/settings.py**

```python
STREAM_API_KEY = 'my_api_key'
STREAM_API_SECRET = 'my_api_secret'
```

**Run server in debug mode pytutorial/settings.py**
```python
DEBUG = True
```

**Setup your database and the demo data:**

```
python manage.py after_deploy
```

**Collect static files (javascript/css)**
```
python manage.py collectstatic
```

**Start the webserver**
```
python manage.py runserver
```

### Copyright and License Information

Copyright (c) 2015-2017 Stream.io Inc, and individual contributors. All rights reserved.

See the file "LICENSE" for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.