Skip to content

dafuq-is/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Backend for http://dafuq.is

It a simple python script which calls urabndictionary api for a given word and returns the response. The server is written using bottle (dependency supplied with repo) and requests.

Requirements

  • bottle (Supplied with code, no need to install)
  • requests v2.1.14

Running

  • $ pip install -r requirements.txt
  • $ python ./src/index.py

For Wordnik

If you want to use wordnik source, you need to create a api key. After you have an API key do.

  • $ cp .env.example .env
  • Modify .env so that you paste your environment variable
  • $ source .env
  • $ DAFUQ_IS_WORDNIK_API_KEY=${DAFUQ_IS_WORDNIK_API_KEY} python3 ./src/index.py

Note: The app will run on localhost on port 8080, we then setup our nginx proxy to forward requests from our web front to the app.

About

Initial Backend using bottle.py

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages