mcroitor / olymp-platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Olymp Platform

About

Olymp Platform is an automated platform for informatics competitions.

Project prerequisites

  • composer : 2.4.4
  • symfony : 6.1
  • mariadb : 10.5.1
  • php : 8.1

Installation and Launch

To install and launch platform, you need:

Install

  1. Install Symfony from official repository
  2. Clone project from github
git clone https://github.com/devrdn/olymp-platform.git
  1. Install dependencies
composer update
# or
php composer.phar update

Database Migration

  1. Connect your database in .env file:
# Example for mysql
DATABASE_URL="mysql://<user>:<password>@<ip>:<port>/<database>?serverVersion=<db-version>"
# Example for sqlite
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/olymp.db.sqlite"
MESSENGER_TRANSPORT_DSN=doctrine://default
  1. Install JS dependencies
npm install
npm run build
  1. Create database
php bin/console doctrine:database:create
  1. Make migration to database
mkdir -p migrations
php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate
  1. Load initial data
php bin/console doctrine:fixtures:load

Start Server

symfony server:start

Todo (README.md)

  1. Makefile description (install project)
  2. Start with docker

About


Languages

Language:PHP 77.2%Language:Twig 16.4%Language:JavaScript 4.4%Language:SCSS 1.8%Language:C++ 0.1%Language:Python 0.0%