Skip to content

Commit ffa8319

Browse files
feat: rename WAOS_ env prefix to NODE_, remove all weareopensource refs
- config/index.js: WAOS_NODE_* -> NODE_*, slice(2) -> slice(1), exclude NODE_ENV - config/defaults: titles, DB name (WaosNodeDev -> NodeDev), placeholder keys, repo owners (weareopensource -> pierreb-devkit), contact email - docker-compose.yml: container/image/volume names, env vars, DB name - lib/services/express.js: WAOS Node Api -> Devkit Node Api - package.json: name, author, repo URL, process name, repositoryUrl - modules/tasks/tests: waos* test ID -> node* - README.md: all NODE_ env vars, no more legacy note - .claude/: clean NODE_ refs - WIKI.md, config/markdown/legal.md: links updated - .github/FUNDING.yml: github: pierreb-devkit - .github/workflows/dependabot.yml: secrets.WAOS -> secrets.NODE_TOKEN
1 parent 3ada365 commit ffa8319

15 files changed

Lines changed: 52 additions & 63 deletions

File tree

.claude/agents/stack-maintainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You are the stack maintainer agent. Your role is to protect the mergeability and
1616
- **Secret leakage**: Check for accidentally committed secrets, tokens, or credentials
1717
- **Broad permissions**: Review permission changes for security risks
1818
- **Dependencies**: Flag suspicious or risky dependency additions
19-
- **Env vars**: Ensure sensitive config uses `WAOS_NODE_*` env vars (legacy prefix), not hardcoded values
19+
- **Env vars**: Ensure sensitive config uses `NODE_*` env vars , not hardcoded values
2020
- **Auth bypass**: Watch for changes that weaken JWT/Passport validation or policy middleware
2121

2222
### 3. Verify modularity

.claude/skills/feature/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ npm test
7272

7373
## Notes
7474

75-
- Config is loaded from `config/` and overridable via `WAOS_NODE_*` env vars (legacy prefix kept for compatibility)
75+
- Config is loaded from `config/` and overridable via `NODE_*` env vars
7676
- Authentication is handled via Passport JWT middleware — don't reimplement
7777
- All policies must use `lib/middlewares/policy.js` patterns

.github/FUNDING.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
1-
# These are supported funding model platforms
2-
3-
open_collective: weareopensource
4-
ko_fi: weareopensource
5-
6-
# github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
7-
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
# liberapay: # Replace with a single Liberapay username
10-
# issuehunt: # Replace with a single IssueHunt username
11-
# otechie: # Replace with a single Otechie username
12-
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
1+
github: pierreb-devkit

.github/workflows/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
- uses: ahmadnassri/action-dependabot-auto-merge@v2
1414
with:
1515
target: minor
16-
github-token: ${{ secrets.WAOS }}
16+
github-token: ${{ secrets.NODE_TOKEN }}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Runs the server at `http://localhost:3000/`. For auto-reload during development,
6767
**CORS Note:** When connecting to the Vue stack, ensure CORS is configured:
6868

6969
```bash
70-
WAOS_NODE_cors_origin=['http://localhost:8080'] npm start
70+
NODE_cors_origin=['http://localhost:8080'] npm start
7171
```
7272

7373
### Production
@@ -113,17 +113,17 @@ GITHUB_TOKEN=xxx npm run release:auto # Semantic release (CI)
113113

114114
Configuration files live in `config/defaults/`. The `development.js` file is the base; other files in that folder override it.
115115

116-
Environment variables prefixed with `WAOS_NODE_` are merged on top (`WAOS` is a legacy prefix kept for compatibility). The variable path maps directly to the config object key:
116+
Environment variables prefixed with `NODE_` are merged on top . The variable path maps directly to the config object key:
117117

118118
```bash
119-
WAOS_NODE_app_title='my app' # sets config.app.title
120-
WAOS_NODE_db_uri='mongodb://...' # sets config.db.uri
119+
NODE_app_title='my app' # sets config.app.title
120+
NODE_db_uri='mongodb://...' # sets config.db.uri
121121
```
122122

123123
## :whale: Docker
124124

125125
```bash
126-
docker run --env WAOS_NODE_db_uri=mongodb://host.docker.internal/WaosNodeDev --env WAOS_NODE_host=0.0.0.0 --rm -p 3000:3000 pierreb/node
126+
docker run --env NODE_db_uri=mongodb://host.docker.internal/NodeDev --env NODE_host=0.0.0.0 --rm -p 3000:3000 pierreb/node
127127
```
128128

129129
Build yourself:

WIKI.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ Welcome to the Node wiki! Here you will find various information about this repo
66

77
#### Node Wiki
88

9-
* [Api](https://github.com/weareopensource/Node/blob/master/WIKI.md#API)
10-
* [Success](https://github.com/weareopensource/Node/blob/master/WIKI.md#Success)
11-
* [Errors](https://github.com/weareopensource/Node/blob/master/WIKI.md#Errors)
12-
* [Authentification](https://github.com/weareopensource/Node/blob/master/WIKI.md#Authentification)
13-
* [SSL](https://github.com/weareopensource/Node/blob/master/WIKI.md#SSL)
14-
15-
#### WAOS
16-
17-
* [Mindset and what we would like to create](https://weareopensource.me/)
18-
* [How to start a project and maintain updates from stacks](https://blog.weareopensource.me/start-a-project-and-maintain-updates/)
19-
* [Global roadmap and ideas about stacks](https://github.com/weareopensource/weareopensource.github.io/projects/1)
20-
* [How to contribute and help us](https://blog.weareopensource.me/how-to-contribute/)
9+
* [Api](https://github.com/pierreb-devkit/Node/blob/master/WIKI.md#API)
10+
* [Success](https://github.com/pierreb-devkit/Node/blob/master/WIKI.md#Success)
11+
* [Errors](https://github.com/pierreb-devkit/Node/blob/master/WIKI.md#Errors)
12+
* [Authentification](https://github.com/pierreb-devkit/Node/blob/master/WIKI.md#Authentification)
13+
* [SSL](https://github.com/pierreb-devkit/Node/blob/master/WIKI.md#SSL)
14+
15+
16+
17+
* [Mindset and what we would like to create](https://github.com/pierreb-devkit)
18+
* [How to start a project and maintain updates from stacks](
19+
* [Global roadmap and ideas about stacks](https://github.com/orgs/pierreb-devkit/projects)
20+
* [How to contribute and help us](
2121

2222
# Node WIKI
2323

config/defaults/development.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const config = {
22
app: {
3-
title: 'WeAreOpenSource Node - Development Environment',
3+
title: 'Devkit Node - Development Environment',
44
description: 'Node - Boilerplate Back : Express, Jwt, Mongo, Sequelize (Beta) ',
55
keywords: 'node, express, mongo, jwt, sequelize, stack, boilerplate',
6-
googleAnalyticsTrackingID: 'WAOS_NODE_app_googleAnalyticsTrackingID',
7-
contact: 'waos.me@gmail.com',
6+
googleAnalyticsTrackingID: 'NODE_app_googleAnalyticsTrackingID',
7+
contact: 'contact@example.com',
88
},
99
swagger: {
1010
enable: true,
@@ -21,7 +21,7 @@ const config = {
2121
timeout: 2 * 60 * 1000,
2222
},
2323
db: {
24-
uri: 'mongodb://127.0.0.1:27017/WaosNodeDev',
24+
uri: 'mongodb://127.0.0.1:27017/NodeDev',
2525
debug: true,
2626
options: {
2727
user: '',
@@ -94,14 +94,14 @@ const config = {
9494
{
9595
// generate releases and changelogs list auto /api/core/changelogs /api/core/releases
9696
title: 'Node',
97-
owner: 'weareopensource',
97+
owner: 'pierreb-devkit',
9898
repo: 'node',
9999
changelog: 'CHANGELOG.md',
100100
token: null,
101101
},
102102
{
103103
title: 'Vue',
104-
owner: 'weareopensource',
104+
owner: 'pierreb-devkit',
105105
repo: 'vue',
106106
changelog: 'CHANGELOG.md',
107107
token: null,
@@ -165,12 +165,12 @@ const config = {
165165
expiresIn: 7 * 24 * 60 * 60, // token expire in x sec
166166
},
167167
mailer: {
168-
from: 'WAOS_NODE_mailer_from',
168+
from: 'NODE_mailer_from',
169169
options: {
170-
service: 'WAOS_NODE_mailer_options_service',
170+
service: 'NODE_mailer_options_service',
171171
auth: {
172-
user: 'WAOS_NODE_mailer_options_auth_user',
173-
pass: 'WAOS_NODE_mailer_options_auth_pass',
172+
user: 'NODE_mailer_options_auth_user',
173+
pass: 'NODE_mailer_options_auth_pass',
174174
},
175175
},
176176
},

config/defaults/production.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const config = await import('./development.js');
44

55
export default _.merge(config.default, {
66
app: {
7-
title: 'WeAreOpenSource Node - Production Environment',
7+
title: 'Devkit Node - Production Environment',
88
},
99
api: {
1010
host: '0.0.0.0',

config/defaults/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const config = await import('./development.js');
44

55
export default _.merge(config.default, {
66
app: {
7-
title: 'WeAreOpenSource Node - Test Environment',
7+
title: 'Devkit Node - Test Environment',
88
},
99
api: {
1010
port: 3001,

config/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ const initGlobalConfig = async () => {
2121
console.error(chalk.red(`+ Error: No configuration file found for "${process.env.NODE_ENV}" environment using development instead. (${_path})`));
2222
defaultConfig = await import(path.join(process.cwd(), './config', 'defaults', 'development.js'));
2323
}
24-
// Get the config from process.env.WAOS_NODE_*
24+
// Get the config from process.env.NODE_*
2525
let environmentVars = _.mapKeys(
26-
_.pickBy(process.env, (_value, key) => key.startsWith('WAOS_NODE_')),
27-
(_v, k) => k.split('_').slice(2).join('.'),
26+
_.pickBy(process.env, (_value, key) => key.startsWith('NODE_') && key !== 'NODE_ENV'),
27+
(_v, k) => k.split('_').slice(1).join('.'),
2828
);
2929
// convert string array from sys to real array
3030
environmentVars = _.mapValues(environmentVars, (v) => (v[0] === '[' && v[v.length - 1] === ']' ? v.replace(/'/g, '').slice(1, -1).split(',') : v));

0 commit comments

Comments
 (0)