zyongbo / testing-system

Testing system for students. Codewars/Hackerrank/Leetcode clone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About project

It's a clone of codewars/hackerrank/leetcode, but for students in my university
DEMO: http://51.15.239.35
Admin credentials: admin:admin
Common user credentials: user:user

How to use

  1. Login as admin
  2. Create groups of students
  3. Create students
  4. Create tasks and tests
  5. Combine different tasks into one work
  6. That's all. Login as common user and enjoy coding

How to set up on linux

  1. Clone repo git clone https://github.com/mihailkuzmin/testing-system
  2. Install dependencies npm install
  3. Build frontend npm run build:client
  4. Build backend npm run build:server
  5. Install PostgreSQL
  6. Init database with setup & init scripts from dist/backend/server/db
  7. Configure nginx for serving frontend from dist/frontend
  8. Add nginx proxy_pass for /api routes to the address that backend listening (default is localhost:5000)
  9. Configure a server with config.json

Run

Now you can run server with node: cd dist/backend/server && node -r tsconfig-paths/register index.js
or use pm2: cd dist/backend/server && pm2 start index.js --node-args="-r tsconfig-paths/register"

About

Testing system for students. Codewars/Hackerrank/Leetcode clone

License:MIT License


Languages

Language:TypeScript 91.7%Language:CSS 6.7%Language:JavaScript 1.4%Language:HTML 0.1%