Skip to content

scaleble nodejs backend which runs user submitted code in a containerized code execution enviroment, implementaion of RabbitMq RPC,

Notifications You must be signed in to change notification settings

sanjaydev02/code_executer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Set Up the Project

  • clone the repo
git clone 
  • open the server folder inside the repo folder
cd  code_executer
  • install all dependencies
npm i
  • pull node and gcc docker image
# pull latest node image
docker pull node
# pull latest gcc image
docker pull gcc
  • run RabbitMq and bind it to port 5672 in a terminal instance
docker run \
-p 5672:5672 \
rabbitmq
  • open another terminal instance and run the node server, from server folder
# go to server folder
cd server
# start the server
npm start
  • open another terminal instance and serve the index.html, from client folder
# go from server folder to  client folder
cd ../client
# create a static server 
npx serve

make sure 3000, 3010, 5672 are not bussyyyy!!

load test

  • install loadtest
npm i -g loadtest
  • test the server
# send 1000 reqs with an concorency level 100
loadtest -n 1000 -c 100 http://localhost:3010

References

Star the Repo ⭐

About

scaleble nodejs backend which runs user submitted code in a containerized code execution enviroment, implementaion of RabbitMq RPC,

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published