A barebones linked entries log with crypto sprinkled on top ๐ฑโ๐
- Clone this repository with
git clone [email protected]:klujanrosas/citripio.git
- Navigate into the correct directory with
cd citripio
- Install dependencies with
yarn install
- Start the development server with
yarn start
curl --request GET \
--url http://localhost:3000/
curl --request POST \
--url http://localhost:3000/citripio \
--header 'Content-Type: application/json' \
--data '{
"message": "my cool message"
}'
Runs unit and integration tests on a single command.
yarn test
All code under src/ will be scanned for tests which will then be executed.
yarn test:unit
A server with a random (available) port will be spawned and killed immediately after tests finish running. Real GET/POST requests will be fired towards this temporary server.
yarn test:integration
For simplicity all log entries(writes) are stored in memory, which then is periodically flushed onto the filesystem to prevent locking the log file.