solve

command module
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

README

Solve

GoDoc codecov Go Report Card CII Best Practices

Solve is distributed under Apache 2.0 License.

How to start development

First of all you should build solve and safeexec binaries:

make all

Then create config file config.json with following contents:

{
  "db": {
    "driver": "sqlite",
    "options": {
      "path": "database.sqlite"
    }
  },
  "server": {
    "port": 4242
  },
  "invoker": {
    "workers": 1,
    "safeexec": {
      "path": "safeexec/safeexec"
    }
  },
  "security": {
    "password_salt": "qwerty123"
  },
  "storage": {
    "driver": "local",
    "options": {
      "files_dir": ".data/files"
    }
  },
  "log_level": "debug"
}

Then apply database migrations:

./solve migrate --with-data

Then run server (API will be available on http://localhost:4242):

./solve server

Then you can register new admin user with password qwerty123:

./solve client create-user \
  --login admin \
  --password qwerty123 \
  --email admin@gmail.com \
  --add-role admin_group

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
ccs
db
Package db provides implementation of generic object and event stores.
Package db provides implementation of generic object and event stores.
Package invoker represents solve implementation for running asynchronious tasks like compiling and judging solutions.
Package invoker represents solve implementation for running asynchronious tasks like compiling and judging solutions.
Package models contains tools for working with solve objects stored in different databases like SQLite or Postgres.
Package models contains tools for working with solve objects stored in different databases like SQLite or Postgres.
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL