Created 23rd September, 2019 03:05 (UTC), last edited 23rd September, 2019 03:42 (UTC)
All of the code has now been moved to a new home on GitHub and a couple of the libraries have had their names tweaked. Because of the way GitHub works this should be a completely transparent change.
Applications have for a while been able to use JSON as the configuration format. The problem with JSON for this is that it has very strict format requirements. Now the configuration files use a new “sloppy” JSON parser that allows commas anywhere that whitespace is allowed and also supports C/C++ style comments.
Fostgres will now always trim whitespace from strings before trying to insert them into the database. This should help with some consistency problems. If you don't want to trim the data then put "trim": false
into the column configuration.
Building on Linux & Mac
You should install Boost development packages using your package manager or brew to safe you from having to build them.
git clone --branch=5.19.09.45082 --recursive git@github.com:hotkit/fost-hello.git
cd fost-hello
mkdir build.tmp
cd build.tmp
cmake -G Ninja .. -DCMAKE_INSTALL_PREFIX=../dist
ninja install/strip
export LD_LIBRARY_PATH=../dist/lib
../dist/bin/hello
On the Mac you will need to set DYLD_LIBRARY_PATH before running hello
export DYLD_LIBRARY_PATH=../dist/lib
../dist/bin/hello
Download locations
Applications
- fost-hello — Sample seed project — git@github.com:hotkit/fost-hello.git
- fost-meta — All libraries and applications in one wrapper — git@github.com:hotkit/fost-meta.git
- mengmon — Stand alone web server — git@github.com:hotkit/mengmom.git
- test-android — Android application that runs Fost unit tests — git@github.com:hotkit/test-android.git
- test-ios — iOS application that runs Fost unit tests — git@github.com:hotkit/test-ios.git
- wright — Experimental build system — git@github.com:hotkit/wright.git
Libraries
- cord — First version of a new string library with compile time string and Unicode support — git@github.com:hotkit/cord.git
- fost-aws — Amazon AWS and OpenStack — git@github.com:hotkit/fost-aws.git
- fost-android-ndk — The native code for Android. Includes required parts of Boost configured to use the standard Android build system.
- fost-beanbag — Transactional JSON database — git@github.com:hotkit/fost-beanbag.git
- fost-base — Build system and core libraries — git@github.com:hotkit/fost-base.git
- fost-internet — Internet protocols, servers & clients — git@github.com:hotkit/fost-internet.git
- fost-postgres — PostgreSQL — git@github.com:hotkit/fost-postgres.git
- fost-web — Web server libraries — git@github.com:hotkit/fost-web.git
- fost-wright — Experiment in a build system — git@github.com:hotkit/fost-wright.git
- json-schema — JSON Schema validation — git@github.com:hotkit/json-schema.git
- threading — Preview of the first Fost 5 library which includes help for threading — git@github.com:hotkit/threading.git
Detailed change log
cord
- Fix a bug in the string slice operations that could cause undefined behaviour when used with
nullptr
buffers.
fost-base
- Add sloppy json parser.
- Add trim function for
f5::u8view
. -
minit
will now always try to execute, even if it is not needed.
fost-internet
- Add a way to stop a web server instance.
- Joining an empty fragment does not give the same result as joining a missing fragment.
fost-postgres
- Add array insert support.
fost-web
- Add Fost-Request-ID in every request and response
- Add a return for status condition control when an if condition fails without else condition
fost-wright
- Made implementation compatible with future changes to string APIs.
fostgres
- Add schema check before insert/update into database and refactor datum for consistent trim
- GET requests that don't check the body content now return the response body.
odin
- JWTs may be placed in cookies and decoded from there.
- Add support for password hashing process in an array