Welcome. This is an online text editor, that runs code in C++
and Python
.
- To try the code runner locally, download the codebase.
- Make sure you have following installed in your system:
react
,NodeJS
,Mongodb
,Redis
andBull
. I have also usednodemon
for help in development while working inNodeJS
. - To run the client-written code in their corresponding languages, you need to have
GCC
compiler andpython
installed in your machine.
Then follow the below guide to start (client) frontend and server (backend) part of the application.
- Open Terminal
- Go to
client
directory inside the project codespace - Write
npm start
. This will open the client side build with react onport:3000
on your local machine
- Open Terminal
- Go to
backend
directory inside the project codespace - Write
npm run
. If you have the above mentioned entities installed on your machine, you should be able to see a log ofListening on port 5000
andSuccessfully connected to Mongodb database
on terminal window. - Optional: If you have
nodemon
installed on your machine, then you can usenpm run dev
instead ofnpm run
. This will keep the backend in check on any changes made by you, and refresh the server accordingly.