Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 6199a22

Browse files
authored
Merge pull request #52 from sdsc-ordes/feat/readme
chore: update example env
2 parents e5f9993 + 32214cf commit 6199a22

3 files changed

Lines changed: 15 additions & 18 deletions

File tree

.env.example

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PUBLIC_QLEVER_UI_URL=https://catplus.swisscustodian.ch/default
33
PUBLIC_CATPLUS_ONTOLOGY_URL=https://sdsc-ordes.github.io/catplus-ontology/
44
PUBLIC_SWISSCAT_URL=https://www.epfl.ch/research/facilities/swisscat/
55
PUBLIC_SDSC_URL=https://www.datascience.ch/
6-
PUBLIC_CHEMBORD_GITHUB_URL=https://github.com/sdsc-ordes/catplus-chembord.git
6+
PUBLIC_CHEMBORD_GITHUB_URL=https://github.com/sdsc-ordes/catplus-chemboard.git
77

88
# Qlever Access
99
QLEVER_API_URL=https://catplus.swisscustodian.ch/sparql/default/
@@ -16,8 +16,5 @@ AWS_ACCESS_KEY_ID=
1616
AWS_SECRET_ACCESS_KEY=
1717

1818
# Sveltekit Configuration
19-
BASE_PATH=/chembord
2019
ORIGIN=http://localhost:3000
21-
PROTOCOL_HEADER=x-forwarded-proto
22-
ADDRESS_HEADER=True-Client-IP
23-
HOST_HEADER=x-forwarded-host
20+
PUBLIC_RESULTS_PER_PAGE="3"

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Catplus Chembord
22

3-
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
3+
## Technology
44

5+
The catplus chembord uses the following technologies:
6+
7+
- [Sveltekit](https://svelte.dev/) as Frontend Framework
8+
- [pnpm](https://pnpm.io/) for node setup
9+
- [Skeleton UI](https://www.skeleton.dev/) for the styles
510

611
## Quickstart
712

@@ -11,16 +16,9 @@ First, define your .env file by copying the example:
1116

1217
```bash
1318
cp .env.example .env
14-
15-
# Edit .env
1619
```
1720

18-
> NOTE: changing the BASE_PATH requires rebuilding the image
19-
20-
Then let docker run the container with variables loaded from the env file:
21-
```bash
22-
docker run -p 3000:3000 --env-file .env ghcr.io/sdsc-ordes/catplus-chembord:latest
23-
```
21+
Edit .env
2422

2523
## Development Environment
2624

@@ -41,9 +39,11 @@ Then use just to install, build and run the project:
4139
```bash
4240
just install
4341
just build
44-
just run # this also installs and builds the project
42+
just local
4543
```
4644

45+
`just local` serves the chembord at `http://localhost:5173/chembord`
46+
4747
### Docker
4848

4949
The docker image can be built using `just image` subcommands:

src/routes/search/+page.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ export const load: PageServerLoad = async ({ url }) => {
3232
) as Record<FilterCategory, string[]>;
3333

3434
const currentPage = Math.max(1, parseInt(url.searchParams.get('page') as string, 10) || 1);
35-
logger.info(currentPage, "Current Page from URL Search Params");
35+
logger.debug(currentPage, "Current Page from URL Search Params");
3636
const pageSize = publicConfig.PUBLIC_RESULTS_PER_PAGE;
3737
const offset = (currentPage - 1) * pageSize;
38-
logger.info({ pageSize, offset }, "Page Size and Offset for Pagination");
38+
logger.debug({ pageSize, offset }, "Page Size and Offset for Pagination");
3939

4040
//------------------------ Create and Execute Queries ------------------------
4141
// 1. Create the sparql query strings
@@ -55,7 +55,7 @@ export const load: PageServerLoad = async ({ url }) => {
5555
getSparqlQueryResult(generatedQueries.countQuery),
5656
getSparqlQueryResult(generatedQueries.resultsQuery)
5757
]);
58-
logger.info({ countResult }, "Count Result:");
58+
logger.debug({ countResult }, "Count Result:");
5959
logger.debug({ queryResult }, "Query Result:");
6060

6161
// 3. Process the results to define your variables

0 commit comments

Comments
 (0)