coapc_fe
is the frontend server for CoAP.cloud. It handles parsing CoAP requests/responses and routes logic to microservice backends. In the future it may support advanced use cases, like HTTP and other forms of proxying.
coapc_fe
is based on libcoap, which includes its own set of dependencies. Most POSIX hosts should work and Windows may work. macOS users - Brew is your friend. To build libcoap
:
-
git clone https://github.com/coapcloud/coapc_fe
(this repo) -
cd coapc_fe
-
git submodule update --init --recursive
to fetch dependencies -
./autogen.sh
-
./configure --disable-documentation --disable-tests --enable-shared --enable-dtls
-
make
-
make install
Currently this project assumes you are developing with Visual Studio Code and it uses VSC's task runner instead of a formal build system like autotools or CMake. This will likely improve in the future.
Included is a default Build task using GCC. Pressing ⇧⌘B
or CTRL+SHIFT+B
with start the build task.
Start the server by running ./server
. In a new window, enter coap-client coap://[::1]
. coap-client
should have been installed when running make install
.