Skip to main content

Web server for `marker`

Project description

Marker-Web

This is a Flask-backend and Vue.js frontend for the marker library. The

Try it out with dummy data! (Mobile friendly too)


Running marker-web spins up a local server and hosts the frontend so you can use the marking utilities with a GUI. The layout makes it trivial to package this as a standalone app if needed.

Disclaimer: This is still in development. There most definitely are UI quirks and missing features. If you find any, please open an Issue on GitHub and let me know!


How to install

There are 2 ways to install this marker.

Using PIP

This is by far the recommended way of installing this utility. Simply run:

pip install marker-web

Build from source

Alternatively, if you want to develop, you will need to build from source:

git clone https://github.com/mustafaquraish/marker-web
cd marker-web
python setup.py install

How to use

Locally

In it's simplest form, you can start up the server with:

$ marker-web

You can also pass in the same arguments as marker CLI.

Currently, if either:

  1. Your configuration file is not is not assgn_dir/config.yml, or
  2. Your src_dir is not the same as assgn_dir

Then you must pass in the correct arguments when running marker-web. Otherwise, the interface provides a little file explorer which lets you pick assgn_dir (and can infer the other two arguments)

By default, anyone else logged in on the machine can access the endpoints. To prevent this, you can run in authenticated mode with:

$ marker-web --auth

This will print out a random token which needs to be entered in the frontend to be able to access any information. A link is also print out with the token embedded in it, so you can just open that URL in your browser.

By default, the server runs on port 6275. You can specify an alternate port using:

$ marker-web --port PORT

Remote (Experimental)

Note: This requires the remote machine to have marker-web installed, and for you to have SSH access to it.

If you want to run the marker on a remote machine, but show the frontend on your local browser, this can be done via port-forwarding over SSH. For full flexibility, you want to do this manually. However, if you are fine with some defaults, you can run:

$ marker-web --remote HOST

which is approximately the same as running:

$ ssh -L PORT:localhost:PORT HOST marker-web --auth

For the features available to you in the GUI, you should read through the documentation for the marker CLI. Most things should be self-explanatory.


Development notes:

  • The frontend directory contains the Vue frontend
  • The marker_web directory contains the marker_server
  • The extra directory contains some files to build a standalone app (on MacOS at least)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

marker_web-1.1.2-py3-none-any.whl (1.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page