Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8d3c681
init
SvenHerr Oct 13, 2022
10399f6
Update README.md
SvenHerr Oct 13, 2022
e1113ab
test
SvenHerr Oct 13, 2022
d48ef9d
init selenium
SvenHerr Oct 13, 2022
8a6c90f
created login test
SvenHerr Oct 13, 2022
c9938aa
split ui and unit
SvenHerr Oct 13, 2022
a9e929a
first unit test
SvenHerr Oct 13, 2022
135d283
tests + comments
SvenHerr Oct 13, 2022
91ff60a
ui test login and logout
SvenHerr Oct 14, 2022
c5beafb
Merge branch 'init-unittest' into main
SvenHerr Oct 14, 2022
f5ae3ee
Merge pull request #58 from SvenHerr/main
SvenHerr Oct 14, 2022
a4fc25d
get rid of tostring in DB
SvenHerr Oct 14, 2022
f7b20f5
Merge branch 'init-unittest' of https://github.com/SvenHerr/Pw-manage…
SvenHerr Oct 14, 2022
23e95b0
fix
SvenHerr Oct 14, 2022
ed40c22
Update login.spec.js
SvenHerr Oct 14, 2022
6ea0d07
Merge pull request #64 from SvenHerr/init-unittest
SvenHerr Oct 14, 2022
f44f785
ui test fix
SvenHerr Oct 14, 2022
ba939ae
Create devskim.yml
SvenHerr Oct 14, 2022
c69f9d3
Create njsscan.yml
SvenHerr Oct 14, 2022
42d1c0b
Create ossar.yml
SvenHerr Oct 14, 2022
933282f
https://app.snyk.io/org/svenherr/project/2fcef858-fe00-49a2-89ae-4fe4…
SvenHerr Oct 14, 2022
54d79d7
Merge branch 'main' of https://github.com/SvenHerr/Pw-manager-nodejs
SvenHerr Oct 14, 2022
e54b667
fixed syntax error
SvenHerr Oct 14, 2022
e041c5e
fixed import
SvenHerr Oct 14, 2022
59f8aeb
Create docker-image.yml
SvenHerr Oct 15, 2022
674d1fb
Added service to docker
myMartek Oct 15, 2022
799e703
added docker deployment
SvenHerr Oct 15, 2022
818e766
Update README.md
SvenHerr Oct 15, 2022
ee5e6fa
Merge remote-tracking branch 'github/main'
myMartek Oct 15, 2022
601fc36
Added autorun of migrations
myMartek Oct 15, 2022
f98b8bd
unuse autologout1
SvenHerr Oct 15, 2022
eca5a65
Merge pull request #68 from myMartek/main
SvenHerr Oct 16, 2022
e9bdcae
Update README.md
SvenHerr Oct 16, 2022
8ce9dba
init structur change
SvenHerr Oct 17, 2022
9e1b5c0
.
SvenHerr Oct 17, 2022
7d70296
structure changes
SvenHerr Oct 17, 2022
7765f0a
Merge pull request #70 from SvenHerr/structure
SvenHerr Oct 17, 2022
7e7bc9a
deleted unused
SvenHerr Oct 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 34 additions & 0 deletions .github/workflows/devskim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: DevSkim

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '22 2 * * 5'

jobs:
lint:
name: DevSkim
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run DevSkim scanner
uses: microsoft/DevSkim-Action@v1

- name: Upload DevSkim scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: devskim-results.sarif
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
42 changes: 42 additions & 0 deletions .github/workflows/njsscan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow integrates njsscan with GitHub's Code Scanning feature
# nodejsscan is a static security code scanner that finds insecure code patterns in your Node.js applications

name: njsscan sarif

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '16 15 * * 2'

permissions:
contents: read

jobs:
njsscan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
name: njsscan code scanning
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: nodejsscan scan
id: njsscan
uses: ajinabraham/njsscan-action@7237412fdd36af517e2745077cedbf9d6900d711
with:
args: '. --sarif --output results.sarif || true'
- name: Upload njsscan report
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
56 changes: 56 additions & 0 deletions .github/workflows/ossar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow integrates a collection of open source static analysis tools
# with GitHub code scanning. For documentation, or to provide feedback, visit
# https://github.com/github/ossar-action
name: OSSAR

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '24 18 * * 4'

permissions:
contents: read

jobs:
OSSAR-Scan:
# OSSAR runs on windows-latest.
# ubuntu-latest and macos-latest support coming soon
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Ensure a compatible version of dotnet is installed.
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
# - name: Install .NET
# uses: actions/setup-dotnet@v2
# with:
# dotnet-version: '3.1.x'

# Run open source static analysis tools
- name: Run OSSAR
uses: github/ossar-action@v1
id: ossar

# Upload results to the Security tab
- name: Upload OSSAR results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
FROM node:lts

ARG NODE_ENV
ENV NODE_ENV $NODE_ENV

WORKDIR /usr/src/app

COPY . /usr/src/app

RUN rm -rf node_modules
RUN rm -f .env
RUN npm install

CMD [ "node", "." ]
CMD [ "npm", "run", "docker" ]
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
# Pw-manager-nodejs
Pw-Manager-Nodejs-opensource

This is my first project with nodejs! Please keep that in mind.


# Install //Fully description will follow soon
<b>Without Docker</b>
- Download Zip
- ....
<br>
<b>With Docker</b><br>
https://hub.docker.com/r/svenherrmann/pw-manager-nodejs
<br>
docker pull svenherrmann/pw-manager-nodejs
<br>
<br>


# English
This Pw- Manager was created by me in NodeJs. This is my first project with NodeJs, Express and Crypto.
Expand Down Expand Up @@ -62,6 +75,7 @@ schreibt mir gerne bei Fragen und Anregungen.
![image](https://user-images.githubusercontent.com/19588101/156414766-1d074d1b-68c9-4150-b240-c27d91c56970.png)
![image](https://user-images.githubusercontent.com/19588101/156414790-b5d313c6-4b84-4b38-bb9b-102850d1563d.png)

<br>

<br>

Expand Down
19 changes: 18 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
version: '3'

services:
pwmanger:
build: .
ports:
- "3002:3001"
restart: unless-stopped
environment:
DB_PORT: 3306
DB_SERVER: 'mysql'
DB_DATABASE: '${DB_DATABASE}'
DB_USERNAME: '${DB_USERNAME}'
DB_PASSWORD: '${DB_PASSWORD}'
SECRET: '${SECRET}'
HTTPS: '${HTTPS}'
networks:
- default

mysql:
image: 'mysql/mysql-server:8.0'
ports:
Expand All @@ -14,6 +30,7 @@ services:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'mysql:/var/lib/mysql'
restart: unless-stopped
networks:
- default
healthcheck:
Expand All @@ -27,4 +44,4 @@ networks:

volumes:
mysql:
driver: local
driver: local
Loading