https://github.com/LinkedDataFragments/FullStackServer
https://github.com/LinkedDataFragments/FullStackServer
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/LinkedDataFragments/FullStackServer
- Owner: LinkedDataFragments
- Created: 2016-10-14T08:33:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-16T22:58:28.000Z (over 9 years ago)
- Last Synced: 2024-11-04T05:33:48.695Z (about 1 year ago)
- Language: Nginx
- Size: 4.88 KB
- Stars: 6
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - LinkedDataFragments/FullStackServer - (others)
README
# Full Stack Linked Data Fragments Server
Example files for a complete default LDF deployment, with an [LDF server](https://github.com/LinkedDataFragments/Server.js), [NGINX cache](https://www.nginx.com/) and [LDF web client](https://github.com/LinkedDataFragments/jQuery-Widget.js) using [Docker Compose](https://docs.docker.com/compose/).
## Run
To start the LDF server, cache and web client, simply run the following command:
```bash
docker-compose up
```
Adding the `-d` parameter will run it as a daemon.
The server will now be running on the default HTTP port, and the web client will be running on port 8080.
## Configure
The required configuration for deploying an LDF server is minimal.
### Server config
`config-server.json` specifies the [server configuration](https://github.com/LinkedDataFragments/Server.js#configure-the-data-sources).
### Client config
`config-client.json` specifies the [web client configuration](https://github.com/LinkedDataFragments/jQuery-Widget.js).
The `queries` folder should contain the SPARQL queries that should be available by default in the web client.
### Cache config
`nginx.conf` and `nginx-default` are the NGINX config files.
By default, this cache is configured to have 4 worker processes, which cache LDF server resources for 7 days.
Logging is enabled by default, resulting log files will appear in the automatically mounted `log/` folder.
### Parameters
No changes are required in the `docker-compose.yml` file, all essential parameters can be changed in the `.env` file.
`DATA_DIR` specifies the data directory in which your datasets are available.
The files in this directory will be mounted to the `/data` directory inside the Docker instance.
The default `config-server.json` expects a `dbpedia2014.hdt` dataset file to be present in this directory.
`LDF_WORKERS` specifies the number of workers the LDF server should have, this will typically be the same as the number of cores of your machine.
The `worker_processes` value in `nginx.conf` should in most cases have the same value.