Skip to content

An api for online code compiler return in node js && express

Notifications You must be signed in to change notification settings

mhdZhHan/execu-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Execu-Code

Welcome to the Execu-Code repository! Execu-Code is an online code compiler built with Node.js, designed to compile and run C++ and Python code. In the future, we plan to include support for more programming languages.

Installation

To install Execu-Code and its dependencies, follow these steps:

1. Clone the repository:

git clone https://github.com/mohammedshajahan7/execu-code.git

2. Navigate to the project directory:

cd execu-code

3. Install the required dependencies:

npm install

4. Install the development dependencies (optional):

npm install --save-dev nodemon

Running the Application

To run the Execu-Code application, you have two options:

1. Start the application in production mode:

npm start

2. Start the application in development mode with automatic server restart (using nodemon):

npm run dev

The application will be running at http://localhost:9000.

Dependencies

Execu-Code relies on the following dependencies:

  • bull: A Redis-based queue library for Node.js.
  • cors: Middleware for enabling Cross-Origin Resource Sharing (CORS) in Express.
  • express: Fast, unopinionated, minimalist web framework for Node.js.
  • mongoose: MongoDB object modeling tool for Node.js.
  • uuid: Simple and efficient universally unique identifier (UUID) generator.

Development Dependencies

The following development dependency is used:

  • nodemon: Utility that automatically restarts the server during development.

Configuration

The package.json file contains the project configuration:

"projectConfig": {
  "serverIp": "localhost",
  "serverPort": 9000,
  "mongoConnectionUrl": "mongodb://127.0.0.1:27017/"
}
  • serverIp: The IP address of the server. By default, it is set to "localhost".
  • serverPort: The port on which the server will be running. By default, it is set to 9000.
  • mongoConnectionUrl: The URL for connecting to MongoDB. By default, it is set to "mongodb://127.0.0.1:27017/".

Please ensure that you have MongoDB running locally and update the configuration if necessary.

Thank you for choosing Execu-Code! If you have any questions or need assistance, feel free to reach out. Happy coding!

About

An api for online code compiler return in node js && express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published