Skip to content

Commit

Permalink
Demo Base
Browse files Browse the repository at this point in the history
  • Loading branch information
mluizinkTS committed Mar 22, 2024
0 parents commit 5f17419
Show file tree
Hide file tree
Showing 265 changed files with 41,541 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
VITE_BACKEND_URL="http://localhost:4000"
VITE_PORT=4000
VITE_HOST='0.0.0.0'
VITE_PLATFORM_SDK_URL="https://platform-websdk.transmitsecurity.io/platform-websdk/latest/ts-platform-websdk.js"
VITE_TS_SERVER_PATH="https://api.transmitsecurity.io"
VITE_FALLBACK_LOCALE='en-US'
VITE_THEME='corporate'
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dev-dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

e2e-mobile-test-results
e2e-desktop-test-results
e2e-test-results
e2e-artifacts
e2e-desktop-artifacts
e2e-mobile-artifacts
.vite-inspect
.rollup-inspect
coverage
playwright-report

# env
.npmrc
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# How to contribute

TODO:
- issues
- improvements
- folder structure
- commits
- pull requests
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) 2023 Ismet Kaan Yılmaz

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.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Transmit Security Webinar - March 26 2024

This repository contains three branches:

## Prerequistes

Software installed:
- git
- NodeJS 18.6+, with npm
- A Javascript IDE, we recommend [VSCode](https://code.visualstudio.com/)

## Getting started

Clone this repository, make sure to select the branch `adding-passkeys-starter`

```bash
git clone -b adding-detectionandresponse-starter https://github.com/TransmitSecurity/Feb26Workshop.git
```

Install the project dependencies.
Make sure you have *NodeJS 18.6 or higher*.

```bash
npm install
```

Start the demo

```bash
npm run dev
```

Follow the webinar !
You also have the documentation in [./docs/add-passkeys.md](./docs/add-passkeys.md).

## Resources

You can use NVM to manage multiple versions of NodeJS
* [NVM for Windows](https://github.com/coreybutler/nvm-windows)
* [NVM on MacOS](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating)
Binary file added assets/theme-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions client-lib/.cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"version": "0.2",
"language": "en",
"words": [
"backchannel",
"birthdate",
"CIBA",
"commitlint",
"Creds",
"degit",
"EMAILHIPPO",
"esbuild",
"Idliveq",
"IDOLOGY",
"jwks",
"MGMT",
"octocat",
"oidc",
"openapi",
"parens",
"passcode",
"Passwordless",
"pino",
"PKCE",
"rmrf",
"SCIM",
"serviceprovider",
"socio",
"ts-demo-server-lib",
"webauthn",
"zoneinfo"
],
"flagWords": [],
"ignorePaths": [
"package.json",
"package-lock.json",
"yarn.lock",
"tsconfig.json",
"node_modules/**",
"src/schemas/**",
"src/endpoints/**"
]
}
31 changes: 31 additions & 0 deletions client-lib/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1.
2.
3.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Ubuntu 22.04, macOS 11.4]
- Node version [e.g 16.4.2]
- Code Version [e.g. 1.1.0]

**Additional context**
Add any other context about the problem here.
5 changes: 5 additions & 0 deletions client-lib/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: GitHub Discussions
url: https://github.com/transmitsecurity-dev/ts-demo-server-lib/discussions
about: Please discuss non bug-related topics there
20 changes: 20 additions & 0 deletions client-lib/.github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
7 changes: 7 additions & 0 deletions client-lib/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Fixes #

## Description of the changes

-
-
-
10 changes: 10 additions & 0 deletions client-lib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
build/
node_modules/
.nyc_output/
coverage/
.DS_Store
.env
.VSCodeCounter
dist/
lib/
.npmrc
37 changes: 37 additions & 0 deletions client-lib/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# dependencies
node_modules/

# outputs
.nyc_output/
coverage/
.VSCodeCounter/

# source code
src/
docs/
openapi/

# configs
.vscode/
.husky/
.github/
.czrc
.commitlintrc.json
.gitignore
.releaserc.json
.npmignore
tsconfig.json
vitest.config.json
vite.config.ts
tsconfig.build.json

# secrets
.env
.npmrc

# docs
CONTRIBUTING.md
PUBLISHING.md
README.md
.env.example
.npmrc.example
32 changes: 32 additions & 0 deletions client-lib/.releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"master",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"repositoryUrl": "https://github.com/transmitsecurity-dev/ts-demo-server-lib.git",
"extends": "semantic-release-monorepo",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/github",
{
"successComment": false,
"failTitle": false
}
]
]
}
8 changes: 8 additions & 0 deletions client-lib/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"eamodio.gitlens",
"streetsidesoftware.code-spell-checker"
]
}
17 changes: 17 additions & 0 deletions client-lib/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Debug Current Test File",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run", "${relativeFile}"],
"smartStep": true,
"console": "integratedTerminal"
}
]
}
15 changes: 15 additions & 0 deletions client-lib/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// only use words from .cspell.json
"cSpell.userWords": [],
"cSpell.enabled": true,
"editor.formatOnSave": true,
"typescript.enablePromptUseWorkspaceTsdk": true,
"VSCodeCounter.exclude": [
"**/.gitignore",
"**/.vscode/**",
"**/node_modules/**",
"**/package-lock.json"
],
"todo-tree.tree.showBadges": true,
"todo-tree.tree.showCountsInTree": true
}
Loading

0 comments on commit 5f17419

Please sign in to comment.