Skip to content

MirzaBaig715/simple-python-twitter

Repository files navigation

Simple Twitter Application

This is simple implementation of Twitter API. This platform contains restful APIs for the client end applications.

Requirements

  • Python 3.6.3
  • Django 2.0.4
  • Django Rest Framework 3.8.2
  • Postgres

Installation

Following are the steps to install this platform.

  • Create Virtual Environment
$ mkdir simple-python-twitter $ cd simple-python-twitter $ https://github.com/MirzaBaig715/simple-python-twitter.git $ virtualenv venv --python=python3 $ virtualenv venv --python=python3 $ cd venv $ source bin/activate

https://apps.twitter.com/

  • Twitter Credentials

Create twitter application on developer console and get the credentials. Place them in settings.py

$CONSUMER_KEY = '################' $CONSUMER_SECRET = '################' $ACESS_TOKEN_KEY = '################' $ACESS_TOKEN_SECRET = '################'
  • Running Docker
$ docker-compose run web python manage.py migrate $ docker-compose run web python manage.py runserver 
  • Running Tests
$ pytest twitterapp/tests.py 

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •