Skip to content

Latest commit

 

History

History
executable file
·
49 lines (41 loc) · 1.28 KB

README.md

File metadata and controls

executable file
·
49 lines (41 loc) · 1.28 KB

MUCSS Problem Pages

Extra TODO:

  • Remove Periodic AJAX
  • Add search bars and pagination to users and problems
  • Add "connect with" button to profile setting for oauth stuff
  • Add page for per problem submissions
  • Add page for per user submissions
  • Normalize db to boyce-codd
  • Redo searches with foriegn keys
  • Add delete and edit to comments
  • Redo comment submissions with AJAX
  • Add training problems
  • Overhaul rank system
  • Add dark mode
  • Add LaTeX support to problems
  • Add live competition support

Setting up server for production:

Clone this repo:

git clone https://github.com/ChrisYeomans/CS_problem_pages

Set up Mariadb and and put a file named .env into the root directory of the app with the following enviornment variables:

db_pw=xxxxxx

GH_BASIC_CLIENT_ID=xxxxxx
GH_BASIC_CLIENT_SECRET=xxxxxx
GL_CLIENT_ID=xxxxxx
GL_CLIENT_SECRET=xxxxxx
FB_CLIENT_SECRET=xxxxxx
FB_CLIENT_KEY=xxxxxx

RAILS_ENV=production

EDITOR="nano"

MASTER_KEY=xxxxxx

Note: the default db user is chris

Build and run with docker:

docker build -t csp .
docker run --network="host" -it --env-file=.env --cap-drop ALL -v /sys/fs/cgroup:/sys/fs/cgroup:ro --group-add lrun --privileged --rm -d csp

Finally set the server up with whatever software you use for reverse proxy to 127.0.0.1:3001