Skip to content

melvinalmonte/fast-kanye-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast-Kanye-REST

Inspired by the work done in Kanye.Rest, Fast-Kanye-REST gives you a random tweet from the Jeen-Yuhs himself.

Getting Started

Just clone this repo.

Prerequisites

Python 3 with pip3

Installing

Once cloned go to the project root file and create a virtual environment

$ python3 -m venv .venv

Activate environment

for Linux and MacOS:

$ source .venv/bin/activate

for Windows:

$ .venv/Scripts/activate.bat

Install dependencies:

$ pip install -r requirements.txt

Run App

Ensure that your have your Twitter API access token and pass it as an environment variable.
Link to Twitter Dev Dashboard.

Set your environment variables (OSX terminal):

export TWITTER_ACCESS_TOKEN='your_twitter_access_token'

Windows (Powershell):

$env:TWITTER_ACCESS_TOKEN='your_twitter_access_token'

Run it!

$ python main.py

Swagger docs can be found in /api/docs
Application is set to start locally at port 5001

Example response:

{
  "ye_wisdom":"Believe in your flyness...conquer your shyness."
}

Built With

About

A FastAPI version of Kanye.REST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages