myungwoo / react-domjudge

DOMJudge with react
15 stars 4 forks source link

DOMjudge with React

What's this?

Main page More images here.

Requirements

How to install

git clone https://github.com/myungwoo/react-domjudge.git
cd react-domjudge
npm i && cd client && npm i && cd ..

How to run

For development

cd react-domjudge
npm start

For production

cd react-domjudge
cd client && npm run build && cd ..
NODE_ENV=production PORT=3000 node server.js

Configuration

Use our server with Apache2

Run:

sudo a2enmod proxy
sudo a2enmod proxy_http

And at apache2 config file:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

RedirectMatch ^/react$ /react/
ProxyPass "/react/" "http://localhost:3000/"
ProxyPassReverse "/react/" "http://localhost:3000/"