Skip to content

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.

License

Notifications You must be signed in to change notification settings

ru-dr/socket-deno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Socket Deno πŸ”ŒπŸ¦•

Overview πŸ“š

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.

Previews πŸ™ˆ

Home Page 🏠

Home page

Chat Page πŸ—£οΈ

Chat Page

Features ✨

  • Real-time messaging using WebSockets πŸ“‘
  • Displays online users in each room πŸ‘₯
  • Powered by Deno and the Oak web framework πŸš€

Getting Started πŸš€

Setup on Render πŸ› οΈ

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

Local Development πŸ’»

If you want to run the application locally, follow these steps:

  1. Install Deno on your machine πŸ¦•.

  2. Clone the repository:

    git clone https://github.com/ru-dr/socket-deno.git
  3. Navigate to the project directory:

    cd socket-deno-template
  4. Start the development server:

    deno run --allow-net --allow-read server.js

Usage πŸ“‘

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.

Deployment πŸš€

To deploy the application on Render:

  1. Push your code to a GitHub repository πŸ—‚οΈ.
  2. Connect the repository to your Render account πŸ”—.
  3. Configure the environment variable and commands as described above πŸ› οΈ.
  4. Deploy your service πŸš€.

To deploy the application on Deno Deploy:

  1. Push your code to a GitHub repository πŸ—‚οΈ.
  2. Connect the repository to your Deno Deploy account πŸ”—.
  3. Select the framework as None.
  4. Do not change any other configurations.
  5. Select the root file as server.js and click deploy πŸš€.

Demo 🌐

Contributing 🀝

Feel free to submit issues or pull requests if you find any bugs or have suggestions for improvements.

License πŸ“„

This project is licensed under the MIT License. See the LICENSE file for more details.


Happy coding with Deno! πŸ¦•πŸ”Œ

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published