Skip to content

super-yaoj/yaoj-core

Repository files navigation

Ya Online Judge

Contributors Forks Stargazers Issues Apache License Go version (master) GitHub tag (latest by date) GitHub code size in bytes

Core packages for YaOJ.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

YaOJ, namely Yet Another Online Judge, is coming as a brand new OJ with an excellent framework for easily configured custom testing. This repo contains all core packages of YaOJ, which is for customized problem testing.

(back to top)

Getting Started

Prerequisites

The go toolkit command.

Installation

  1. Clone the repo

    git clone --recursive https://github.com/super-yaoj/yaoj-core
  2. Generate necessary files

    cd yaoj-core
    go generate
  3. Build Apps

    go build ./cmd/migrator
    go build ./cmd/judgeserver
  4. Happy developing!

(back to top)

Usage

Go Reference

For more examples, please refer to *_test.go files

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat(scope): add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the Apache-2.0 License. See LICENSE for more information.

(back to top)

Contact

Project Link: https://github.com/super-yaoj/yaoj-core

(back to top)

How to test coverage

go test -coverprofile cover.out .
go tool cover -html=cover.out