Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove git artifacts #2

Merged
merged 40 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f361756
first commit
jchartrand May 15, 2023
1e0f06f
Create issues-to-project.yml
fields37 Jun 24, 2023
a8d2fa0
rework to match new services model
jchartrand Jul 7, 2023
c400ace
update status manager
jchartrand Aug 8, 2023
eab7664
return json from errors
jchartrand Aug 23, 2023
2666cf6
fix tests
jchartrand Aug 25, 2023
28b7a62
Update README.md
jchartrand Sep 15, 2023
6d4307a
Update README.md
jchartrand Oct 5, 2023
b45ab42
Update README.md
jchartrand Oct 5, 2023
d0eeeea
Update README.md
jchartrand Oct 5, 2023
3e1e154
add logging
jchartrand Oct 17, 2023
2a5975c
Update README.md
jchartrand Oct 19, 2023
f0e7052
fix logging
jchartrand Oct 19, 2023
ca5b126
add logging examples to env example
jchartrand Oct 19, 2023
89f9632
adds support for mongodb credential status manager
kezike Jan 31, 2024
1b26d67
adds service based environment variable files; updates readme instruc…
kezike Jan 31, 2024
c276f5f
fixes status credential site origin spec; adds instructions for traff…
kezike Jan 31, 2024
33355e1
minor copy simplification
kezike Jan 31, 2024
c663068
uses github branch dependency for db status manager
kezike Jan 31, 2024
f9dd81c
minor copy fix
kezike Feb 7, 2024
8b6ef19
uses error logging and error handling middleware to detect errors wit…
kezike Feb 9, 2024
df4479e
adds next to status credential controller to navigate to middleware
kezike Feb 9, 2024
0a2f507
configures database and table names for db status manager; enables st…
kezike Mar 1, 2024
82ee9c3
removes git artifacts; ignores lock files; applies copy refinements; …
kezike Mar 1, 2024
4a9df82
first commit
jchartrand May 15, 2023
fad7a6d
deletes .env_copy
kezike Mar 1, 2024
fad966c
applies lint refinements
kezike Mar 1, 2024
586259e
adds ENABLE_ACCESS_LOGGING environment variable; renames LOG_ALL_FILE…
kezike Mar 2, 2024
721eccb
updates to bistring status list and vc 2.0; uses new status update me…
kezike Mar 15, 2024
acc1696
implements endpoint to retrieve credential info
kezike Mar 16, 2024
26c9f95
fixes tests and adds back ENABLE_HTTPS_FOR_DEV environment variable
kezike Apr 20, 2024
051648c
applies minor copy and style updates
kezike Apr 23, 2024
933578f
use node 20 in github action
kezike Apr 23, 2024
0d8c75a
updates format of "credentialStatus" credential field to include susp…
kezike Apr 24, 2024
feb37db
additional cleanup
kezike Apr 24, 2024
3f0cb97
adds sample curl request for status update
kezike Apr 24, 2024
459e10a
fixes server.js by importing fs; implements localtunnel npm script; m…
kezike May 1, 2024
7ea1dc6
adds docker-compose file
kezike May 23, 2024
d43e6f7
removed docker-compose.yaml, as it should not be necessary with Docke…
kezike May 23, 2024
12a3679
allocates only revocation status by default
kezike Jun 12, 2024
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: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/*.env
node_modules
26 changes: 26 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# see the README for an explanation of all env values

# General environment variables
CRED_STATUS_SERVICE=mongodb
CRED_STATUS_DID_SEED=z1AackbUm8U69ohKnihoRRFkXcXJd4Ra1PkAboQ2ZRy1ngB
PORT=4008 # default port is 4008
ENABLE_ACCESS_LOGGING=true
ENABLE_HTTPS_FOR_DEV=false
ERROR_LOG_FILE=logs/error.log
ALL_LOG_FILE=logs/all.log
CONSOLE_LOG_LEVEL=silly # default is silly, i.e. log everything - see the README for allowed levels
LOG_LEVEL=silly # default is silly

# Database specific environment variables
STATUS_CRED_SITE_ORIGIN=https://credentials.example.edu
CRED_STATUS_DB_URL=mongodb+srv://user:[email protected]?retryWrites=false
CRED_STATUS_DB_HOST=domain.mongodb.net # ignored if CRED_STATUS_DB_URL is configured
CRED_STATUS_DB_PORT=27017 # ignored if CRED_STATUS_DB_URL is configured
CRED_STATUS_DB_USER=testuser # ignored if CRED_STATUS_DB_URL is configured
CRED_STATUS_DB_PASS=testpass # ignored if CRED_STATUS_DB_URL is configured
CRED_STATUS_DB_NAME=
STATUS_CRED_TABLE_NAME=
USER_CRED_TABLE_NAME=
CONFIG_TABLE_NAME=
EVENT_TABLE_NAME=
CRED_EVENT_TABLE_NAME=
14 changes: 14 additions & 0 deletions .github/workflows/issues-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: move new, edited, reopened issues to DCC Engineering project

on:
issues:
types: [ opened, edited, reopened ]
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/digitalcredentials/projects/14
github-token: ${{ secrets.PROJECTS_ACCESS_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Node.js CI

on: [push]

jobs:
test-node:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Run test with Node.js ${{ matrix.node-version }}
run: npm run test
env:
CI: true
111 changes: 111 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Library lock files
package-lock.json
yarn.lock

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# vscode
.vscode
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:18-alpine
WORKDIR /app
COPY . .
RUN npm install
CMD ["node", "server.js"]
EXPOSE 4008
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Digital Credentials Consortium

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.
Loading