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
- Host: GitHub
- URL: https://github.com/GetStream/django_twitter
- Owner: GetStream
- License: bsd-3-clause
- Created: 2015-03-13T13:28:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-04T01:08:48.000Z (over 5 years ago)
- Last Synced: 2024-08-09T13:17:30.861Z (over 1 year ago)
- Language: Python
- Homepage: https://getstream.io
- Size: 4.17 MB
- Stars: 107
- Watchers: 42
- Forks: 57
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
[](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.