Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 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
4a1c947
remove timeout values
Mehulantony Mar 9, 2026
1407d40
Merge pull request #39 from oss-slu/clean-package
allenbakki Mar 10, 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
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.

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/
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'

// `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
22 changes: 22 additions & 0 deletions __tests__/public_api.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { app, createServer, start } from '../index.js'

describe('public API entry point', () => {
test('exports an express app instance', () => {
expect(app).toBeDefined()
expect(typeof app.use).toBe('function') // express app
})

test('createServer returns a http.Server', () => {
const server = createServer(0) // port 0 for ephemeral
expect(server).toBeDefined()
expect(typeof server.listen).toBe('function')
server.close()
})

test('start starts the server and returns it', (done) => {
const server = start(0)
server.on('listening', () => {
server.close(() => done())
})
})
})
3 changes: 2 additions & 1 deletion __tests__/routes_mounted.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

import request from "supertest"
import api_routes from "../routes/api-routes.js"
import app from "../app.js"
// leverage the public entry point instead of a deep path
import app from "../index.js"
import fs from "fs"

let app_stack = app.router.stack
Expand Down
5 changes: 2 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import express from 'express'
import path from 'path'
import cookieParser from 'cookie-parser'
import dotenv from 'dotenv'
dotenv.config()
import config from './config/index.js'
import logger from 'morgan'
import cors from 'cors'
import indexRouter from './routes/index.js'
Expand Down Expand Up @@ -71,7 +70,7 @@ app.use(express.static(path.join(__dirname, 'public')))
* This is without middleware
*/
app.all('*_', (req, res, next) => {
if(process.env.DOWN === "true"){
if(config.DOWN === "true"){
res.status(503).json({"message":"RERUM v1 is down for updates or maintenance at this time. We apologize for the inconvenience. Try again later."})
}
else{
Expand Down
Loading