Forex Simulation Platform
- CLI flip can ping flipd daemon (#12)
- flipd daemon can start flip_crawler with proper configuration (#13)
- flipd daemon can start flip_collector with proper configuration (#14)
- flip_collector can save data to disk periodically (#15)
- flip_collector can save data to disk and end if flipd ask (#16)
git clone --recursive https://github.com/celestian/flip.git
cd flip
./bootstrap.sh
./configure && make
# for cleaning
make distclean
# Compilation out of source tree:
. contrib/bashrc_flip
reconfig && chmake
# and for cleaning just remove build directory (e.g. `x86_64`)
# Source code and markdown autoformat
./prepare-commit.sh
- [C/C++] http://en.cppreference.com
- [argp] https://www.gnu.org/software/libc/manual/html_node/Argp.html
- [talloc] https://talloc.samba.org/talloc/doc/html/group__talloc.html
- [talloc best practicies] https://talloc.samba.org/talloc/doc/html/libtalloc__bestpractices.html
- [tevent] https://tevent.samba.org/index.html
- [nanomsg] http://nanomsg.org/
- [libcurl] https://curl.haxx.se/libcurl/c/libcurl.html
- [websockets] https://libwebsockets.org/
- [jsmn] https://github.com/zserge/jsmn
- [jsmn examples] https://github.com/alisdair/jsmn-example
- [sqlite] https://www.sqlite.org/
- [inih] https://github.com/benhoyt/inih
- [creating library in C] https://www.gnu.org/software/automake/manual/automake.html#A-Library
- [daemon] https://www.freedesktop.org/software/systemd/man/daemon.html
TBD, draft:
# Enable debug
reconfig --enable-debug
# Run server flipd
make clean && chmake && ./flipd /home/celestian/Projects/flip/example/flip.conf
# List flip processes
ps -e | grep flip ; ll -l /tmp | grep flip
# See flip's logs
journalctl -t flipd
journalctl -t flip_crawler
# Debug on nanomsg sockets
nanocat --sub --connect ipc:///tmp/crawler_pubsub.ipc -AQ
# Coredump
coredumpctl list
coredumpctl -o bar.coredump dump /<path>/<to>/<service>