

If you don’t like any subreddit and want to report it, you couldn’t find any legit method for it.

The tests rely on a running Mongo DB accessible at either mongodb://localhost:27017 or whatever the environment variable MONGODB_URI is set to.High quality articles with in-depth research You can also pass additional options to jest by running yarn test -opt1 -opt2. To run the tests, run yarn test for a single run or yarn test:watch to run in watch mode. The env vars marked as required by worker are needed for both. node -e "require('build/server/queue/producers/subreddits').run()" node -e "require('build/server/queue/producers/messages').run()" node -e "require('build/server/queue/producers/modlogs').run()" There are currently three producers: one to fetch the list of subreddits, one for the logs and one for PMs which produce moderator reports: The producers should be run periodically. This will ensure that any new queue items are processed. The consumers should be run in a worker process which stays running continuously: There are two components to this: producers and consumers. Subreddit, log and report processing are queued. If enabled, logs certain metrics (reddit API hits, reports, etc) to an internal mongo db. The user agent to send with reddit API calls The app secret given by reddit for API access The app ID given by reddit for API access

Make sure to pass the appropriate environment variables into the docker containers when they're run. redis: runs the redis server for the worker queue.nginx: frontend for the web and login services.login: a small OAuth microservice from login-with.worker: queues and processes logs, reports, etc.be sure to provide the correct env vars (see below) web: runs the API server and serves the UI.The app is also dockerized for ease of deployment. Or just run docker-compose -f docker/docker-compose.yml up. Yarn ui:build and yarn server:build to build, then yarn server:run to run.

The server will be running in watch-mode, and UI hot reload will work.
