GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mediacloud/web-tools: The shared repository for Media Cloud web apps (Explorer, Source Manager, Topic Mapper)

This repository was archived by the owner on Dec 14, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

6,806 Commits
6,806 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
build
build
 
 
config
config
 
 
doc
doc
 
 
logs
logs
 
 
requirements
requirements
 
 
scripts
scripts
 
 
server
server
 
 
src
src
 
 
.babelrc
.babelrc
 
 
.buildpacks
.buildpacks
 
 
.env
.env
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.flaskenv
.flaskenv
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.pylintrc
.pylintrc
 
 
.python-version
.python-version
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
app.json
app.json
 
 
package.json
package.json
 
 
requirements.txt
requirements.txt
 
 
run.py
run.py
 
 
run.sh
run.sh
 
 
runtime.txt
runtime.txt
 
 
test.sh
test.sh
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Media Cloud Web Tools

This is a shared repository for all the front-facing Media Cloud web tools. This includes:

  • Explorer
  • Source Manager
  • Topic Mapper
  • Tools

Check out the doc folder for more documentation.

Dev Installation

Git:

  • git submodule update --init --recursive

Python:

  • Follow the instructions in doc/python-versions.md to setup Python the way we do
  • Once you've got Python setup, install the requirements by running pip install -r requirements.txt

Node and yarn:

  • On Windows, make sure to create an environment variable: set NODE_ENV=dev
  • make sure your node installation is up-to-date (we work with v8.2.1 right now)
  • yarn install to install all the package dependencies (as specified in the package.json)

MongoDB: Install MongoDb:

  • brew tap mongodb/brew
  • brew install [email protected] If you get a connection refused error, make sure you've started the server by running brew services start [email protected]

Redis: Install Redis We develop on OS X and install via the HomeBrew package manager: brew install redis

MemCache: On OSX, make sure to run brew install libmemcached otherwise you'll get an error about pylibmc failing to install (http://brew.sh)

Multi-platform setup: Coming soon

Configuration

Copy config/app.config.template to config/app.config and fill in the required info there.

Running the Apps

You need to open two terminal windows and run one thing in each (so the hot-reloading can work):

  • redis-server to start redis (if it's not running already)
  • yarn run topics-dev or yarn run sources-dev
  • python run.py
    • if you get flask errors, run the pip install -r requirements.txt line again. On Mac Osx, you may need to run with --ignore-installed

Toolchain

You will make your life easier by installing these tools:

  • PyCharm - our IDE of choice for Python development
  • Redux DevTools Chrome extension
  • React Developer Tools Chrome Extension.
  • Set up your environment with SublimeText and linting following these instructions.
  • Note - you need to tell Sublime to install the Sublime package control manager and then you need to install the necessary packages using Sublime's command line. That's all there in the link, just make sure you follow the prompts explicity.
  • To browse your local DB on a Mac use MongoHub, or MongoExpress for a web-based UI

Development

Python linting rules can be found in .pylintrc. To run linting run:

make lint.py

To run JS linting rules:

npx eslint

We use PyCharm and run linting on the flying using the pylint-pycharm plugin. After installing it, enable real-time inspection:

  • Preferences > Editor > Inspections > Pylint
  • Check "Pylint real-time scan"

A pre-commit hooks will run JavaScript linting (e.g. when you commit, linting will be run). You can try to automatically fix JavaScript linting errors by running:

$ yarn run lint_fix

Not all errors can be fixed this way and for more details about the linting error see eslint.

About

The shared repository for Media Cloud web apps (Explorer, Source Manager, Topic Mapper)

tools.mediacloud.org

Topics

civic-techflaskmedia-analyticsmedia-cloudpythonreactjs

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

65 stars

Watchers

1 watching

Forks

31 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.