https://github.com/ruanbekker/flask-random-words
Using Random word library in Flask to get Word and Definitions
https://github.com/ruanbekker/flask-random-words
docker docker-compose flask python random-words
Last synced: 3 months ago
JSON representation
Using Random word library in Flask to get Word and Definitions
- Host: GitHub
- URL: https://github.com/ruanbekker/flask-random-words
- Owner: ruanbekker
- Created: 2020-10-06T07:47:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-18T14:54:24.000Z (over 5 years ago)
- Last Synced: 2025-02-23T06:31:14.973Z (over 1 year ago)
- Topics: docker, docker-compose, flask, python, random-words
- Language: HTML
- Homepage: https://ruan.dev
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flask-random-words
Using Random word library in Flask to get Word and Definitions
## About
Using the [remaudcorentin-dev/python-randomword](https://github.com/remaudcorentin-dev/python-randomword) library in Python Flask to get the word and definition on a GET request.
## Usage
Build and run:
```
$ docker-compose build
$ docker-compose up
```
Test:
```
$ curl http://localhost:5000
{"word":"auxiliary","definition":"helping supporting"}
```
Using render template:
