Server for CS446 project
export FLASK_APP=app.py
flask run
GET /words
- Returns list of 10 words
To ingest new words into mongodb:
- Create an Oxford Dictionary API account at https://developer.oxforddictionaries.com/signup?plan_ids[]=2357356361005
- Create a
.envfile in directory of cs446-server/ containing mongodb and oxford API credentials- Replace
OXFORD_APP_IDandOXFORD_SECRETenv variables with your Application ID and Application Key
- Replace
python scrape_oxford.py- this randomly sampleswords.txtand appends words toparsed_words_us.txtandparsed_words_uk.txtpython upload_words.py- this ingests the words fromparsed_words_us.txtandparsed_words_uk.txtinto mongodb