From 545c1a7abbaccc58e01505d67222d1ffda8997e8 Mon Sep 17 00:00:00 2001 From: FifthWit Date: Thu, 13 Mar 2025 13:35:03 -0500 Subject: [PATCH 1/4] Updated README and removed useless package --- README.md | 21 ++++++++++++++++++++- package.json | 1 - 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7959044..3ac9dca 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ # BackendV2 -P-Stream's Backend has some issues, and this branch is designed to remake all the endpoints with Nitro for better DX \ No newline at end of file +BackendV2 is a from scratch rewrite for the old Fastify and MikroOrm version with backwards compatibility! + +## Tech Stack +This repo uses: +- [Nitro](https://nitro.build) +- [Prisma](https://pris.ly) +- [Zod](https://zod.dev) + +along with other minor libraries, we chose Nitro for its fast DX, easy support for caching, minimal design, and rapid prototyping. Prisma due to it's clear syntax, typesafety, and popularity. Zod for validation. + +# Goals +Since we've changed the codebase so much for better DX that comes with more changes! +- [ ] Recommendations using ML models to provide accurate Recommendations via embeddings using a vector database +- [x] Ratings, partly for the affirmentioned goal +- [ ] Client wrapper library for any site that wants to keep user data related to movies, films, and recommendations + +## Minor information +Only make PRs to `beta` branch +Production deployments are [here](https://backend.fifthwit.net) +Beta deployments are [here](https://beta.backend.fifthwit.net) \ No newline at end of file diff --git a/package.json b/package.json index 131007d..8afed8f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ }, "dependencies": { "@prisma/client": "^6.4.1", - "bs58": "^6.0.0", "dotenv": "^16.4.7", "jsonwebtoken": "^9.0.2", "prom-client": "^15.1.3", From 187f32eca6048abcf71f9c4e17714b1060b2e6cf Mon Sep 17 00:00:00 2001 From: FifthWit Date: Thu, 13 Mar 2025 13:35:38 -0500 Subject: [PATCH 2/4] forgot that too --- package-lock.json | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 71ccecf..deb4d09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,6 @@ "": { "dependencies": { "@prisma/client": "^6.4.1", - "bs58": "^6.0.0", "dotenv": "^16.4.7", "jsonwebtoken": "^9.0.2", "prom-client": "^15.1.3", @@ -2025,12 +2024,6 @@ "license": "Apache-2.0", "optional": true }, - "node_modules/base-x": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.1.tgz", - "integrity": "sha512-M7uio8Zt++eg3jPj+rHMfCC+IuygQHHCOU+IYsVtik6FWjuYpVt/+MRKcgsAMHh8mMFAwnB+Bs+mTrFiXjMzKg==", - "license": "MIT" - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -2091,15 +2084,6 @@ "node": ">=8" } }, - "node_modules/bs58": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-6.0.0.tgz", - "integrity": "sha512-PD0wEnEYg6ijszw/u8s+iI3H17cTymlrwkKhDhPZq+Sokl3AU4htyBFTjAeNAlCCmg0f53g6ih3jATyCKftTfw==", - "license": "MIT", - "dependencies": { - "base-x": "^5.0.0" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", From 69691836382b10206a21235dc320d3b6731f0b0c Mon Sep 17 00:00:00 2001 From: FifthWit Date: Thu, 13 Mar 2025 13:37:54 -0500 Subject: [PATCH 3/4] I like money --- .github/FUNDING.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..7e82dde --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +github: FifthWit \ No newline at end of file From 68ba67027b3ee37041bb99ab84b2b8167cf4b5f2 Mon Sep 17 00:00:00 2001 From: FifthWit Date: Thu, 13 Mar 2025 13:51:10 -0500 Subject: [PATCH 4/4] Setup the github repo --- .github/ISSUE_TEMPLATE.yml | 73 ++++++++++++++++++++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 10 +++++ README.md | 3 ++ 3 files changed, 86 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE.yml create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.yml b/.github/ISSUE_TEMPLATE.yml new file mode 100644 index 0000000..a8128d6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.yml @@ -0,0 +1,73 @@ +name: Bug Report or Feature Request +description: File a bug report or request a new feature... llm template so sorry if it breaks +title: "[BUG/FEATURE]: " +labels: ["triage"] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this issue! + - type: dropdown + id: issue-type + attributes: + label: Issue Type + description: What type of issue are you reporting? + options: + - Bug + - Feature Request + - Documentation Issue + - Question + validations: + required: true + - type: textarea + id: description + attributes: + label: Description + description: A clear and concise description of the issue. + placeholder: Tell us what you see or want to see! + validations: + required: true + - type: textarea + id: expected + attributes: + label: Expected Behavior + description: What did you expect to happen? + placeholder: Describe what you expected to happen. + validations: + required: false + - type: textarea + id: current + attributes: + label: Current Behavior + description: What actually happened? + placeholder: Describe what actually happened. + validations: + required: false + - type: textarea + id: steps + attributes: + label: Steps To Reproduce + description: Steps to reproduce the behavior. + placeholder: | + 1. In this environment... + 2. With this config... + 3. Run '...' + 4. See error... + validations: + required: false + - type: textarea + id: environment + attributes: + label: Environment + description: | + examples: + - **OS**: Ubuntu 20.04 + - **Node**: 14.17.0 + - **npm**: 6.14.13 + value: | + - OS: + - Node: + - npm: + render: markdown + validations: + required: false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..04ab884 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,10 @@ +## Description +Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. + +Fixes # (issue) + +## Type of change +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) +- [ ] Documentation update \ No newline at end of file diff --git a/README.md b/README.md index 3ac9dca..e5501af 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # BackendV2 +[![Donate](https://img.shields.io/badge/Donate-GitHub%20Sponsors-PURPLE)](https://github.com/sponsors/FifthWit) + + BackendV2 is a from scratch rewrite for the old Fastify and MikroOrm version with backwards compatibility! ## Tech Stack