Skip to content

Online Judge Platform of PICT ACM Student Chapter (Backend) πŸš€

License

Notifications You must be signed in to change notification settings

PICT-ACM-Student-Chapter/OJ_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6201cbe Β· Apr 19, 2022
Dec 25, 2020
Apr 19, 2022
Nov 9, 2020
Apr 19, 2022
Dec 30, 2020
Dec 30, 2020
Apr 29, 2021
Apr 3, 2021
Mar 2, 2021
Apr 19, 2022
Nov 20, 2020
Dec 29, 2020
Nov 20, 2020
Nov 20, 2020

Repository files navigation

Online Judge API

CodeFactor Android-master Actions Status

πŸ”₯ Online Judge Platform of PICT ACM Student Chapter

System Architecture

System Architecture

Prerequisites

This project is built on top of docker containers. So ensure that you have Docker and Docker Compose installed on your system For installation instructions refer: https://docs.docker.com/install/

To run test cases:

docker-compose run app sh -c "python manage.py test && flake8"

Starting the Server

Start the PostgreSQL server first:

docker-compose up db

Then start whole project:

docker-compose up

Execute Commands

To execute any commands inside django docker container, follow this format:

docker-compose run app sh -c "command here"

Examples

  • Create Super User:

    docker-compose run app sh -c "python manage.py create superuser"
  • Add New App:

        docker-compose run app sh -c "python manage.py startapp polls"

API Documentation

API documentation is done using swagger visit /swagger for API documentation