Skip to content

This is a bachelors project which goal is to create a data labeling product. The students developing this are students at Linköpings universitet in Sweden.

License

Notifications You must be signed in to change notification settings

vorbrodt/GutenTag

Repository files navigation

GutenTag

This is a bachelors project which goal is to create a data labeling product. The students developong this are students at Linköpings universitet in Sweden.

Configuring your development environment

All terminal commands are expected to be run from the project's root folder.

  1. Install Visual Studio Code.
  2. Install Python version 3.9.1.
  3. Install NodeJS version 15.0.0 or later.
  4. Install the following VSCode extensions.
    • Python
    • ESLint
    • Prettier
  5. Open the VSCode settings (CTRL + ,).
  6. Search for "Format On Save" and enable it.
  7. Create a virtual environment and select your Python interpreter.
    • If you're on Windows, run python -m venv .venv On Linux/MacOS run python3 -m venv .venv
    • Press CTRL+SHIFT+P in VSCode.
    • Select "Python: Select Interpreter".
    • Select "Python 3.9.1 64-bit ('.venv').
    • Open the settings (CTRL + ,).
    • Enable "Python > terminal: Activate Env in Current Terminal".
    • Your virtual environment should now be activated automatically when you open VSCode.
  8. Install the Python dependencies.
    • Run pip install -r ./backend/requirements.txt -r ./backend/requirements_dev.txt
  9. Install the JavaScript dependencies.
    • Run (cd frontend && npm install)
  10. Add the following settings to your /.vscode/settings.json file. This enables the Flake8 linter as well as format on save for javascript.
{
    // ...
    // ... other options
    // ...
    "python.linting.flake8Enabled": true,
    "python.linting.enabled": true,

    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "eslint.validate": ["javascript"],
}
  1. Restart VSCode.

Starting the application for debugging

Installing Docker

Docker is run through Docker Desktop on Windows & MacOS while Linux distributions run Docker Engine.

Windows

  1. Follow the instructions for either Windows Home Edition or Pro/Educational Edition.
  2. It is recommended that you run Docker using Windows Subsystem for Linux (WSL). Instructions can be found here.

MacOS

Follow the instructions here.

Linux

Follow the instructions here.

Running the Docker containers

Launch Docker Desktop. Then open the root directory in the terminal and run

docker-compose up

This will launch all of the services in different containers, install their dependencies and configure them to communicate on a local network.

The frontend should now be reachable at http:localhost:3000/ and the backend at http:localhost:5000/

About

This is a bachelors project which goal is to create a data labeling product. The students developing this are students at Linköpings universitet in Sweden.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published