GithubHelp home page GithubHelp logo

jabolol / apricot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 14 KB

Simple Socket.io demo written in C++

License: MIT License

CMake 11.05% C++ 66.19% TypeScript 22.76%
echo-server socket-io websocket

apricot's Introduction

apricot

Simple Socket.io demo written in C++. Its aim is to provide a simple working example of how to use the Socket.io library in a C++ project, using git submodules to manage dependencies and CMake as the build system.

apricot :: echo server
type 'exit' to quit
-----------------------------------
hello world!
<< hello world!
whoami
<< aiW_1pW3z1nVphxDAAAD
cowsay
<< 
 ______
< Moo! >
 ------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
exit
-----------------------------------

getting started

To get started with the demo, follow these steps:

  1. Clone the repository with submodules recursively:
git clone --recurse-submodules https://github.com/Jabolol/apricot.git .
  1. Create a build directory and navigate into it:
mkdir build
cd build
  1. Generate the build files using CMake:
cmake ..
  1. Initialize the server by running the following command in one terminal:
deno run -A www/main.ts
  1. In another terminal, run the compiled Apricot executable:
./apricot
  1. Type help to see a list of available commands.

contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

license

This project is licensed under the MIT License.

apricot's People

Contributors

jabolol avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.