Skip to content

Commit

Permalink
feat: backend api
Browse files Browse the repository at this point in the history
  • Loading branch information
Ealenn committed Feb 3, 2024
1 parent 91a1cc3 commit 96dad8b
Show file tree
Hide file tree
Showing 39 changed files with 857 additions and 101 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
},
};
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] Title"
labels: bug
assignees: Ealenn

---

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

**To Reproduce**
Steps to reproduce the behavior.

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

**Response**
If applicable, add result to help explain your problem.

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .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: "[FEATURE] Title"
labels: feature
assignees: Ealenn

---

**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.
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Description
<!--- Describe your changes in detail -->

## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
<!--- Please link to the issue here -->

## How Has This Been Tested
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->
23 changes: 23 additions & 0 deletions .github/workflows/github-bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Bump
on:
push:
branches:
- master

jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
tag_prefix: ''
- name: Create a GitHub release
uses: ncipollo/release-action@v3
with:
token: ${{ secrets.PAT }}
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
25 changes: 25 additions & 0 deletions .github/workflows/nodejs-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "NodeJS Linter"

on:
pull_request:
branches: ['*']

jobs:
linter:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install, build, and test
run: |
npm ci
npm run lint
env:
CI: true
34 changes: 34 additions & 0 deletions .github/workflows/nodejs-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "NodeJS Tests"

on:
push:
branches:
- master
pull_request:
branches: ['*']

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install, build, and test
run: |
npm ci
npm run build
npm run test:cov
npm run test:e2e
env:
CI: true
- name: Publish
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

## Configuration


| Environment Variable | Example | Description |
| Environment Variable | Default | Description |
|---|---|---|
|APP_VERSION|`0.0.1`|Current version|
|APP_VERSION| Package.json version |Current version|
|PORT|`3000`|Webserver|
|JWT_SECRET|`123456789`|Secret used to sign JWT|
|JWT_EXPIRE_SECONDS|`60`|JWT expiration in seconds|
Loading

0 comments on commit 96dad8b

Please sign in to comment.