Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
7a50ecf
Bring in changes from old repo
Devayani1612 Sep 9, 2025
5c98dd7
Issue #4 changed
joeljoby02 Sep 11, 2025
db28211
Added the token display at near the top of the page. Not completely d…
LuisPalmejar21 Sep 12, 2025
335cd72
Merge pull request #6 from oss-slu/dev_joel
Devayani1612 Sep 13, 2025
191849e
Cloned the code from dev_devayani to dev_luis due to mistakenly mergi…
LuisPalmejar21 Sep 16, 2025
fcaa8f3
Made changes to satisfy the requirements according to https://github.…
LuisPalmejar21 Sep 16, 2025
e6b9534
Merge branch 'dev_devayani' into dev_luis
Devayani1612 Sep 18, 2025
3b2a854
Merge pull request #10 from oss-slu/dev_luis
Devayani1612 Sep 18, 2025
dbc9551
Issue #9 and #5 changes
joeljoby02 Sep 19, 2025
f43aba7
Fixing display bugs
joeljoby02 Sep 19, 2025
a10ff89
Merge pull request #11 from oss-slu/dev_joel_2
Devayani1612 Sep 19, 2025
b4fc002
Removed verfiy section
joeljoby02 Sep 22, 2025
eaa4f73
Minor change
joeljoby02 Sep 22, 2025
8981926
Merge pull request #12 from oss-slu/dev_joel_2
Devayani1612 Sep 22, 2025
a9d2f5a
Implemented the Copy tokens button. Deleted the token display section…
LuisPalmejar21 Sep 22, 2025
8ffeaa2
Merge branch 'dev_luis' of https://github.com/oss-slu/rerum_server_no…
LuisPalmejar21 Sep 22, 2025
b228f3d
Merge branch 'dev_devayani' into dev_luis
Devayani1612 Sep 22, 2025
acd99d5
Merge pull request #13 from oss-slu/dev_luis
Devayani1612 Sep 22, 2025
04fbee0
Updated index.html
Devayani1612 Sep 22, 2025
e6c0ef0
Merge pull request #14 from oss-slu/dev_devayani
joeljoby02 Sep 23, 2025
c3cba4e
Merge remote-upstream branch 'upstream/main' into Issue-24
joeljoby02 Feb 1, 2026
1a7a710
deleted github workflows
Mehulantony Feb 2, 2026
1de2c69
Don't take these claude settings
thehabes Feb 10, 2026
8ce3ad5
Merge pull request #26 from oss-slu/Issue-24
allenbakki Feb 12, 2026
b547ec3
Clean package.json for npm publishing
Mehulantony Feb 21, 2026
97ab944
Remove .npmignore from package.json cleanup PR
Mehulantony Feb 21, 2026
ad42453
refine .npgmignore
Mehulantony Feb 21, 2026
f310a4c
remove .npmignore
Mehulantony Feb 21, 2026
5738d57
centralized env config variables
joeljoby02 Feb 22, 2026
b8ce1fa
Centralizing mongodb connection
joeljoby02 Feb 23, 2026
9cab6f3
Changes to index.js exports
joeljoby02 Feb 23, 2026
7f6c95d
Line 30 env centralize
joeljoby02 Feb 23, 2026
7acb97a
Temp single point entry changes
joeljoby02 Feb 23, 2026
2e98a69
Revert "Temp single point entry changes"
joeljoby02 Feb 23, 2026
e487c93
Added changes for issue 33
joeljoby02 Feb 23, 2026
128fc8d
Removed test issues
joeljoby02 Feb 23, 2026
75689ad
fixed failing tests
Mehulantony Feb 26, 2026
60d8c1b
fixed all failing tests
Mehulantony Feb 26, 2026
a06e7d1
Integrated the feedback
joeljoby02 Mar 1, 2026
0c6842e
Changed route tests based on addition of index.js in root
joeljoby02 Mar 1, 2026
d457892
Merge pull request #40 from oss-slu/centralize_mongo_env
allenbakki Mar 2, 2026
2fc46cc
Merge pull request #42 from oss-slu/issue-35-clone
allenbakki Mar 2, 2026
fa606c2
Merge pull request #41 from oss-slu/issue-33
allenbakki Mar 2, 2026
ba7662c
fix more failing tests
Mehulantony Mar 3, 2026
56873d4
Feedback changes from PR 40 and 41
joeljoby02 Mar 9, 2026
fe29c33
Refactored utils.js
joeljoby02 Mar 9, 2026
4a1c947
remove timeout values
Mehulantony Mar 9, 2026
1407d40
Merge pull request #39 from oss-slu/clean-package
allenbakki Mar 10, 2026
69b911c
Incorporated feedback
joeljoby02 Mar 11, 2026
98d2d8b
Incorporated feedback changes
joeljoby02 Mar 11, 2026
eb5a10b
refined package.json for npm publishing
Mehulantony Mar 28, 2026
2af4018
Removed default exports
joeljoby02 Mar 29, 2026
1b704e3
Merge branch 'main' into refactor_utils
thehabes Mar 30, 2026
19f9280
No shebangs here
thehabes Mar 30, 2026
e43cd97
Merge pull request #62 from oss-slu/issue-58
allenbakki Mar 30, 2026
6035d72
Merge pull request #53 from oss-slu/refactor_utils
allenbakki Mar 30, 2026
03f64fb
removed everything related to gog
Mehulantony Apr 5, 2026
d83d9c8
Merge branch 'main' into feedback_40-41
thehabes Apr 7, 2026
5352d49
Add LICENSE file
allenbakki Apr 9, 2026
252ec59
Merge pull request #52 from oss-slu/feedback_40-41
allenbakki Apr 20, 2026
d7be6fe
Merge pull request #66 from oss-slu/remove-gog
allenbakki Apr 20, 2026
2351be2
Merge pull request #67 from oss-slu/allenbakki-patch-1
allenbakki Apr 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ The `db-controller.js` is a facade that imports from specialized controller modu
- `controllers/release.js`: Object release (immutability)
- `controllers/bulk.js`: Bulk create and update operations
- `controllers/search.js`: MongoDB text search (searchAsWords, searchAsPhrase)
- `controllers/gog.js`: Gallery of Glosses specific operations (fragments, glosses, expand)
- `controllers/utils.js`: Shared utilities (ID generation, slug handling, agent claims)

**4. Authentication & Authorization:**
Expand All @@ -113,7 +112,6 @@ The `db-controller.js` is a facade that imports from specialized controller modu
**5. Special Features:**
- **Slug IDs:** Optional human-readable IDs via Slug header (e.g., "my-annotation")
- **PATCH Override:** X-HTTP-Method-Override header allows POST to emulate PATCH for clients without PATCH support
- **GOG Routes:** Specialized endpoints for Gallery of Glosses project (`/gog/fragmentsInManuscript`, `/gog/glossesInManuscript`)
- **Content Negotiation:** Handles both `@id`/`@context` (JSON-LD) and `id` (plain JSON) patterns

### Directory Structure
Expand Down
18 changes: 0 additions & 18 deletions .claude/settings.json

This file was deleted.

26 changes: 0 additions & 26 deletions .claude/settings.local.json

This file was deleted.

51 changes: 0 additions & 51 deletions .claude/statusline-command.sh

This file was deleted.

3 changes: 1 addition & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ After making changes, ALWAYS validate these scenarios:

### Key Directories
- `/routes/` - Route handlers and API endpoints (Express routes)
- `/controllers/` - Business logic controllers (CRUD operations, GOG-specific controllers)
- `/controllers/` - Business logic controllers (CRUD operations, history, release, bulk operations)
- `/database/` - Database connection and utilities (MongoDB integration)
- `/auth/` - Authentication middleware (Auth0 JWT handling)
- `/public/` - Static files (API.html, context.json, etc.)
Expand All @@ -145,7 +145,6 @@ After making changes, ALWAYS validate these scenarios:
- **Database**: MongoDB for persistent storage, versioned objects
- **Static Files**: Served directly from `/public` directory
- **CORS**: Fully open ("*") for cross-origin requests
- **Specialized Routes**: Gallery of Glosses (GOG) specific endpoints in `_gog_*.js` files

### Coding Style Guidelines
- **Semicolons**: Avoid unnecessary semicolons (e.g., at the end of most lines)
Expand Down
73 changes: 0 additions & 73 deletions .github/workflows/cd_dev.yaml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/cd_prod.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/claude.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Documentation
docs/
*.md
!README.md
CODEOWNERS

# Test and mock files
__tests__/
__mocks__/
**/__tests__/
**/__mocks__/
coverage/
jest.config.js

# Backup folders / artifacts
backups/
*.backup
*.bak
*.swp
*.tgz

# Local configuration files
.env
.env.*
config.local.js
*.local.js

# Tooling and CI
.github/
.claude/
22 changes: 21 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
There is no license.
MIT License

Copyright (c) 2026 Open Source with SLU

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ Stores important bits of knowledge in structured JSON-LD objects:
1. **Open and Free**—expose all contributions immediately without charge to write or read;
1. **Attributed and Versioned**—always include asserted ownership and transaction metadata so consumers can evaluate trustworthiness and relevance.

### Programmatic usage
This project exposes a single public entry point at the package root (`index.js`). Only a few
functions are exported – everything else lives in internal modules and is intentionally
kept private. Example:

```js
import { app, createServer, start } from 'rerum_server_nodejs'

// `app` is the configured Express application; you can pass it to Supertest or reuse it
// inside another HTTP stack.

const server = createServer(8080) // returns a http.Server but does not listen
server.listen()

// or simply
start(8080) // convenience helper that both creates and listens
```

Consumers no longer need to reach into `./app.js` or other deep paths – if it isn't
exported here it isn't part of the stable API.

## What we add
You will find a `__rerum` property on anything you read from this repository. This is written onto
all objects by the server and is not editable by the client applications. While applications may assert
Expand Down
Loading