This is a simple WebSocket chat application template built with Deno 🦕 and the Oak 🐿️. It provides a starting point for developing real-time chat applications using WebSockets.
MIT License
This is a simple WebSocket chat application template built with Deno 🦕 and the Oak 🐿️. It provides a starting point for developing real-time chat applications using WebSockets.
Deno: The project uses Deno as the runtime. It's automatically installed during the build process.
Environment Variable:
DENO_INSTALL
should be set to /opt/render/project/.deno
.Build Command: This command installs Deno on the Render platform:
curl -fsSL https://deno.land/install.sh | sh
Start Command: This command sets up the environment and starts the application:
export PATH="$DENO_INSTALL/bin:$PATH" && deno run --allow-net --allow-read server.js
If you want to run the application locally, follow these steps:
Install Deno on your machine 🦕.
Clone the repository:
git clone https://github.com/ru-dr/socket-deno.git
Navigate to the project directory:
cd socket-deno-template
Start the development server:
deno run --allow-net --allow-read server.js
Once the application is running, you can connect to the WebSocket server using a client (e.g., a web browser or a WebSocket client tool). The application supports basic real-time messaging.
To deploy the application on Render:
To deploy the application on Deno Deploy:
Feel free to submit issues or pull requests if you find any bugs or have suggestions for improvements.
This project is licensed under the MIT License. See the LICENSE file for more details.
Happy coding with Deno! 🦕🔌