Skip to content

Code that drives the public web-based tools for the Media Cloud Online News Archive and Directory.

License

Notifications You must be signed in to change notification settings

pgulley/web-search

 
 

Repository files navigation

Media Cloud Web Search and Source Management App

🚧 under construction 🚧

This is the new Media Cloud search application. It is intended to support online media research across platforms such as online news, Twitter, Reddit, and other social media (via 3rd party APIs). We also use it to manage a large set of geographical and topical content collections, supporting research into specific sub-corpora of content on those platforms.

Expected to launch publicly in early 2023

Installation

  1. Clone this repository
  2. Install Python, npm, postgres and redis
  3. Python: pip install -r requirements.txt or conda install --file requirements.txt
  4. Node: npm install in base folder
  5. Copy mcweb/.env.template to mcweb/.env and edit that one to enter all your secret configuration variables
  6. python mcweb/manage.py migrate to create all the database tables needed
  7. python mcweb/manage.py createsuperuser to create a Django superuser for administration

Running

  1. Run the backend: python mcweb/manage.py runserver
  2. Run the frontend: npm run dev
  3. Then visit http://127.0.0.1:8000/.

Helpful Tips

Other useful commands:

  • import collection/source/feed data (from a folder on your computer): python mcweb/manage.py importdata
  • login to http://localhost:8000/admin to 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

Releasing

npm run build

About

Code that drives the public web-based tools for the Media Cloud Online News Archive and Directory.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 64.3%
  • Python 29.9%
  • Shell 3.3%
  • SCSS 1.8%
  • HTML 0.5%
  • Procfile 0.1%
  • Awk 0.1%