atomic-serverStatus: pre-alpha
A lightweight HTTP server that shares created Atomic data on the web.
Install Cargo to build from source.
```sh git clone git@github.com:joepio/atomic.git cd atomic/server
cp default.env .env
cargo run
```
atomic-server inside a directory with /static folder for filesATOMIC_CERT_INIT to true and run the server. After that, set it to false and set ATOMIC_HTTPS to true..ad3 store path is given, a new store will be created from memory.You can also install with cargo install atomic-server, but this binary will also require:
.env from this repo, although the defaults should work just fine./templates directory/static directoryYou can fetch individual items by sending a GET request to their URL.
```sh
curl -i -H "Accept: application/ad3-ndjson" http://127.0.0.1:8081/test
curl -i -H "Accept: application/ld+json" http://127.0.0.1:8081/test
curl -i -H "Accept: application/json" http://127.0.0.1:8081/test ```
```sh
curl -i -H "Accept: application/ad3-ndjson" "http://127.0.0.1:8081/tpf?subject=&property=&value=test" ```
```sh
cargo test --all ```
```sh
cargo install drill drill -b benchmark.yml --stats ```