Giter VIP home page Giter VIP logo

restbed-based-android-web-server's Introduction

Wow, Running Web Server In Android!!!!

This project is intended to record programs written in C++ on Android working normally. I used a simple web server to express how it works. We needed an example of a simple but different library as possible. So we implemented a web server using [Restbed]. Also note that the 1984 port is designated as the default port in the code. The actual equipment tested is [Qualcomm Snapdragon 865 development kit equipment].

Build tests are conducted every Tuesday using the Crontab function in Github Action.

NDK Build Test (CI) GitHub C++ CMake


HDK Server Result
HDK Device image

How to build? (For Android, In Linux)

$ git clone https://github.com/Piorosen/Restbed-based-Android-Web-Server
$ cd Restbed-based-Android-Web-Server
$ chmod +x bootstrap.sh
$ ./bootstrap.sh
$ make build

How to push executable file into android (Using ADB, In Linux)

$ adb devices | grep device
# default value: ./build/chacha, because project name is chacha.
# adb push ${executable file: chacha} /data/local/tmp
$ adb push ./build/chacha /data/local/tmp
$ adb shell chmod +x /data/local/tmp/chacha
$ adb shell /data/local/tmp/chacha

How to Test? (Using curl, In Linux)

$ curl --request POST 'http://{Android IP Address}:1984/resource' \
    --data-raw 'test: android C++ server.'

Result

Server Result Build
Server Communicate Test build success message

restbed-based-android-web-server's People

Contributors

piorosen avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

hyunju-park

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.