This is a online judge. It is a web application that allows users to submit solutions to programming problems and view the results of their submissions. It is a full-stack web application that uses the following technologies:
Clone the repository and install the dependencies for the server and client.
git clone https://github.com/Wh4rp/Online-Judge.git
cd Online-Judge
cd backend && npm install
cd ../frontend && npm install
Create a .env
file in the backend
directory and add the following variables.
PORT=3000
SECRET=<secret-key-for-jwt>
MONGO_URI=<mongodb-connection-string>
-
PORT
is the port that the server will run on. -
SECRET
can be any string, I used this page to generate a random string. -
MONGO_URI
can be obtained from MongoDB Atlas.
cd backend
npm run build:ui
npm run dev