GithubHelp home page GithubHelp logo

dbarashev / sqool Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10.27 MB

SQooL is a contest server for teaching SQL

License: Apache License 2.0

Shell 0.38% JavaScript 0.36% Dockerfile 0.02% PLpgSQL 15.59% Kotlin 56.01% FreeMarker 4.08% TypeScript 12.06% Vue 11.19% HTML 0.30%

sqool's Introduction

SQooL

SQooL is a contest server for teaching SQL

Prerequisites

  • Install gradle version 5+, docker, npm.
  • Run npm install && npm install webpack && sudo npm install -g @vue/cli-service-global

Building and running locally

Lazy way

This will run SQooL Frontend as if it was in the cloud (more or less). This way requires less typing but is generally not well suited for hack-compile-reload development cycles.

  • Run gradle jibDockerBuild, gradle docker
  • Run cd devops && ./sqool-frontend-up.sh

Efficient way

When running this way, you can reload your frontend (or even your static files) without having to rebuild Docker images, which naturally makes development cycles faster.

  • Run PostgreSQL on standard port 5432 e.g. using Docker:
docker run -d --name sqool-frontend_postgres -p 5432:5432 postgres:11` 
  • Initialize database schema from sqool-frontend-database.sql file, e.g. using Docker again:
cd src/main/sql
docker run --rm --link sqool-frontend_postgres:postgres -v $(pwd):/workspace postgres:11 psql -h postgres -U postgres -f /workspace/sqool-frontend-database.sql
  • Run SQooL Frontend server. Default values of command line arguments point to PostgreSQL running on localhost:5432 with user postgres and no password:
/opt/gradle-5.0/bin/gradle run

If your PostgreSQL setup is different, pass appropriate values to command line arguments.

Production deployment

sqool's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.