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

updated dependencies + sonar fixes + workflows #37

Merged
merged 6 commits into from
Aug 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bug: 'bug/*'
dependency: 'dependency/*'
documentation: 'documentation/*'
feature: 'feature/*'
hotfix: 'hotfix/*'
quality: 'quality/*'
8 changes: 6 additions & 2 deletions .github/workflows/issue-assigned-workflows.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Issue Assigned Workflows

on:
issues:
types: [assigned]
types: [ assigned ]

jobs:
automate-project-columns:
name: "Automate Project Columns"
runs-on: ubuntu-latest

steps:
- uses: alex-page/github-project-automation-plus@v0.3.0
- name: Move Issue to In-Progress
uses: alex-page/github-project-automation-plus@v0.3.0
with:
project: Open Template Hub Servers
column: In progress
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/issue-open-workflows.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
name: Issue Open Workflows

on:
issues:
types: [opened]
types: [ opened ]

jobs:
automate-project-columns:
name: "Automate Project Columns"
runs-on: ubuntu-latest

steps:
- uses: alex-page/github-project-automation-plus@v0.3.0
- name: Move Issue to In-Progress
uses: alex-page/github-project-automation-plus@v0.3.0
with:
project: Open Template Hub Servers
column: To do
repo-token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }}

milestone-binder:
name: "Milestone Binder"
runs-on: ubuntu-latest

steps:
- uses: Code-Hex/auto-milestone-binder@v1.0.1
- name: Set Milestone of the Issue
uses: Code-Hex/auto-milestone-binder@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 5 additions & 3 deletions .github/workflows/on-push-tags.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: On Push Tags Workflows

on:
push:
tags:
- '*'

jobs:
tagged-release:
name: "Release"
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- uses: "marvinpinto/action-automatic-releases@latest"
- name: Generate Release From Tag
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
prerelease: false
20 changes: 14 additions & 6 deletions .github/workflows/on-push-to-master.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
name: On Push to Master Workflows

on:
push:
branches:
- "master"

jobs:
build:
name: "CI"
continuous-integration:
name: "Npm Continuous Integration"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Checkout Repo
uses: actions/checkout@v2

- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm ci

- name: NPM Install
run: npm install
- name: NPM Continous Integration
run: npm ci
30 changes: 30 additions & 0 deletions .github/workflows/on-version-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: On Version Update Workflows

on:
push:
paths-ignore:
- 'package.json'
branches:
- "master"

jobs:
bump-version:
name: "Update Version"
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }}

- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 12

- name: Bump Version and Create Tag
uses: phips28/gh-action-bump-version@master
with:
tag-prefix: ''
token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }}
28 changes: 0 additions & 28 deletions .github/workflows/pr-open-to-master-workflows.yml

This file was deleted.

21 changes: 15 additions & 6 deletions .github/workflows/pr-open-workflows.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@
name: PR Open Workflows

on:
pull_request:
types: [opened]
types: [ opened ]

jobs:
pr-labeler:
name: "Add Label to PR"
runs-on: ubuntu-latest

steps:
- uses: TimonVS/pr-labeler-action@v3
- name: Add Label to PR
uses: TimonVS/pr-labeler-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

automate-project-columns:
name: "Update Kanban Column"
name: "Automate Project Columns"
runs-on: ubuntu-latest

steps:
- uses: alex-page/github-project-automation-plus@v0.3.0
- name: Move PR to In-Progress
uses: alex-page/github-project-automation-plus@v0.3.0
with:
project: Open Template Hub Servers
column: In progress
repo-token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }}

milestone-binder:
name: "Add Milestone to PR"
name: "Milestone Binder"
runs-on: ubuntu-latest

steps:
- uses: Code-Hex/auto-milestone-binder@v1.0.1
- name: Set Milestone of the PR
uses: Code-Hex/auto-milestone-binder@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .run/install.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="install" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="install" />
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/start.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="start" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="start" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/startLocal.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="startLocal" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="startLocal" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
</p>

<h1 align="center">
File Storage Server Template
Open Template Hub - File Storage Server Template v2
</h1>

[![License](https://img.shields.io/github/license/open-template-hub/file-storage-server-template?color=2F7488&style=for-the-badge)](LICENSE)
[![Issues](https://img.shields.io/github/issues/open-template-hub/file-storage-server-template?color=2F7488&style=for-the-badge)](https://github.com/open-template-hub/file-storage-server-template/issues)
[![PRCLosed](https://img.shields.io/github/issues-pr-closed-raw/open-template-hub/file-storage-server-template?color=2F7488&style=for-the-badge)](https://github.com/open-template-hub/file-storage-server-template/pulls?q=is%3Apr+is%3Aclosed)
[![LastCommit](https://img.shields.io/github/last-commit/open-template-hub/file-storage-server-template?color=2F7488&style=for-the-badge)](https://github.com/open-template-hub/file-storage-server-template/commits/master)
[![Release](https://img.shields.io/github/release/open-template-hub/file-storage-server-template?include_prereleases&color=2F7488&style=for-the-badge)](https://github.com/open-template-hub/file-storage-server-template/releases)
[![License](https://img.shields.io/github/license/open-template-hub/file-storage-server-template?color=43b043&style=for-the-badge)](LICENSE)
[![Issues](https://img.shields.io/github/issues/open-template-hub/file-storage-server-template?color=43b043&style=for-the-badge)](https://github.com/open-template-hub/file-storage-server-template/issues)
[![PRCLosed](https://img.shields.io/github/issues-pr-closed-raw/open-template-hub/file-storage-server-template?color=43b043&style=for-the-badge)](https://github.com/open-template-hub/file-storage-server-template/pulls?q=is%3Apr+is%3Aclosed)
[![LastCommit](https://img.shields.io/github/last-commit/open-template-hub/file-storage-server-template?color=43b043&style=for-the-badge)](https://github.com/open-template-hub/file-storage-server-template/commits/master)
[![Release](https://img.shields.io/github/release/open-template-hub/file-storage-server-template?include_prereleases&color=43b043&style=for-the-badge)](https://github.com/open-template-hub/file-storage-server-template/releases)
[![SonarCloud](https://img.shields.io/sonar/quality_gate/open-template-hub_file-storage-server-template?server=https%3A%2F%2Fsonarcloud.io&label=Sonar%20Cloud&style=for-the-badge&logo=sonarcloud)](https://sonarcloud.io/dashboard?id=open-template-hub_file-storage-server-template)
[![BTC](https://img.shields.io/badge/Donate-BTC-ORANGE?color=F5922F&style=for-the-badge&logo=bitcoin)](https://commerce.coinbase.com/checkout/8313af5f-de48-498d-b2cb-d98819ca7d5e)

File Storage Server Template in NodeJS Express.js
File Storage Server Template that supports uploading and downloading files from AWS S3

## Ways to Begin

Expand Down Expand Up @@ -75,6 +75,7 @@ POSTGRESQL_CONNECTION_LIMIT={PostgreSQL Open Connection Limit}

For pre-deployment of S3 provider, update **assets/sql/preload.data.json**
with your configuration:

```json
{
"key": "S3",
Expand Down
20 changes: 18 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{
"name": "File Storage Server Template",
"description": "File Storage Server Template in NodeJS Express.js",
"description": "File Storage Server Template that supports uploading and downloading files from AWS S3",
"repository": "https://github.com/open-template-hub/file-storage-server-template",
"logo": "https://avatars2.githubusercontent.com/u/65504426?s=200&v=4",
"keywords": ["server", "template", "nodejs", "typescript", "mongodb", "mongoose", "aws", "amazon", "s3"]
"keywords": [
"file-sorage",
"download",
"upload",
"server",
"template",
"nodejs",
"typescript",
"mongodb",
"mongoose",
"aws",
"aws-s3",
"amazon",
"amazon-web-services",
"s3",
"open template hub"
]
}
Loading