mediacloud / web-search

Code that drives the public web-based tools for the Media Cloud Online News Archive and Directory.
https://search.mediacloud.org
Apache License 2.0
10 stars 15 forks source link
media-analytics research-tool social-media social-science

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:

Releasing

npm run build