Skip to content

CodeSocket is a real-time code editor with file explorer functionality and a code execution compiler.

Notifications You must be signed in to change notification settings

Maran1947/codesocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

CodeSocket

A real-time code editor with a file explorer functionality.

image image

⚙ Installation

Follow these steps to set up Stockify locally:

  1. Fork and clone the repository:
git clone https://github.com/your-username/codesocket.git
  1. Install the required dependencies:
cd codesocket

cd client
  npm install
cd server
  npm install
  1. Set up the configuration file:
  • Create an .env file in the client folder of the codesocket
  • Update the necessary environment variables in the .env and .env.development file.
client
.env.development
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
.env:
NEXT_PUBLIC_BACKEND_URL=<YOUR_HOSTED_BACKEND_URL>

server
.env
MONGODB_URI=<MONGODB_URI>

  1. Start the application:
For client: npm run dev
For server: npm run dev 
  1. Access CodeSocket in your web browser at http://localhost:3000.

Ports Used

  • :3000 - Client application runs on this port.
  • :8000 - Server and WebSocket services are hosted on this port.

Docker Setup (Only for server)

  1. Build docker image
docker build -t codesocket-server .
  1. Run the Docker container
docker run -d -p 8000:8000 -p 6379:6379 codesocket-server
  1. Stop the docker container
docker stop <container_id>

About

CodeSocket is a real-time code editor with file explorer functionality and a code execution compiler.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published