This is the new Media Cloud search application. It is intended to support online media research using news stories captured by rss-fetcher and story-indexer We also use it to manage a large set of geographical and topical content collections, supporting research into specific sub-corpora of content.
Deployed in production (and staging and causual development) under Dokku, see dokku-scripts/README.md for how.
- Clone this repository
- Install Python, npm, postgres and redis
- Python:
pip install -r requirements.txtorconda install --file requirements.txt - Node:
npm installin base folder - Copy
mcweb/.env.templatetomcweb/.envand edit that one to enter all your secret configuration variables python mcweb/manage.py migrateto create all the database tables neededpython mcweb/manage.py createsuperuserto create a Django superuser for administration
- Run the backend:
python mcweb/manage.py runserver - Run the frontend:
npm run dev - Then visit http://127.0.0.1:8000/.
Other useful commands:
- import collection/source/feed data (from a folder on your computer):
python mcweb/manage.py importdata - login to
http://localhost:8000/adminto administer users and groups - Two running terminals (1) django "backend" and (2) react "frontend"
- Two running websites (1) http://localhost:8000/admin for administer users and groups and (2) http://localhost:8000/#/ for Media Cloud "Proof of Concept"
- Redux Dev Tools (Google Chrome Extension) to see the live store
npm run build