From 980ef0c8c2652fb16e02464b1957004cfbebf5c2 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Fri, 14 Feb 2025 13:07:18 -0600 Subject: [PATCH 1/4] Add dependabot config (#60) --- .github/dependabot.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..10283bd --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,27 @@ +version: 2 +updates: + # GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + actions: + patterns: + - "*" + assignees: + - "@mongodb/dbx-python" + # Python + - package-ecosystem: "pip" + directory: "{{cookiecutter.project_slug}}/backend" + schedule: + interval: "weekly" + assignees: + - "@mongodb/dbx-python" + # Node + - package-ecosystem: "npm" + directory: "{{cookiecutter.project_slug}}/frontend" + schedule: + interval: "weekly" + assignees: + - "@mongodb/dbx-python" \ No newline at end of file From 4869601c9cb619828356c825b8f0a125f9198d2e Mon Sep 17 00:00:00 2001 From: Jib Date: Tue, 4 Mar 2025 11:04:05 -0500 Subject: [PATCH 2/4] docker frontend build fixes (#61) --- .../frontend/app/components/settings/Profile.tsx | 3 ++- .../frontend/app/components/settings/Security.tsx | 3 ++- {{cookiecutter.project_slug}}/frontend/app/login/page.tsx | 3 ++- .../frontend/app/reset-password/page.tsx | 3 ++- {{cookiecutter.project_slug}}/frontend/package.json | 1 + {{cookiecutter.project_slug}}/frontend/postcss.config.js | 2 +- {{cookiecutter.project_slug}}/frontend/tailwind.config.ts | 2 +- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/{{cookiecutter.project_slug}}/frontend/app/components/settings/Profile.tsx b/{{cookiecutter.project_slug}}/frontend/app/components/settings/Profile.tsx index 04fa578..e61b535 100644 --- a/{{cookiecutter.project_slug}}/frontend/app/components/settings/Profile.tsx +++ b/{{cookiecutter.project_slug}}/frontend/app/components/settings/Profile.tsx @@ -18,7 +18,8 @@ const renderError = (type: LiteralUnion) => { switch (type) { case "required": return
This field is required.
; - case "minLength" || "maxLength": + case "minLength": + case "maxLength": return (
Your password must be between 8 and 64 characters long. diff --git a/{{cookiecutter.project_slug}}/frontend/app/components/settings/Security.tsx b/{{cookiecutter.project_slug}}/frontend/app/components/settings/Security.tsx index 6f7f167..d95a48d 100644 --- a/{{cookiecutter.project_slug}}/frontend/app/components/settings/Security.tsx +++ b/{{cookiecutter.project_slug}}/frontend/app/components/settings/Security.tsx @@ -39,7 +39,8 @@ const renderError = (type: LiteralUnion) => { switch (type) { case "required": return
This field is required.
; - case "minLength" || "maxLength": + case "minLength": + case "maxLength": return (
Your password must be between 8 and 64 characters long. diff --git a/{{cookiecutter.project_slug}}/frontend/app/login/page.tsx b/{{cookiecutter.project_slug}}/frontend/app/login/page.tsx index 63bcfc6..5202013 100644 --- a/{{cookiecutter.project_slug}}/frontend/app/login/page.tsx +++ b/{{cookiecutter.project_slug}}/frontend/app/login/page.tsx @@ -26,7 +26,8 @@ const renderError = (type: LiteralUnion) => { switch (type) { case "required": return
This field is required.
; - case "minLength" || "maxLength": + case "minLength": + case "maxLength": return (
Your password must be between 8 and 64 characters long. diff --git a/{{cookiecutter.project_slug}}/frontend/app/reset-password/page.tsx b/{{cookiecutter.project_slug}}/frontend/app/reset-password/page.tsx index 0b7faae..9a6b746 100644 --- a/{{cookiecutter.project_slug}}/frontend/app/reset-password/page.tsx +++ b/{{cookiecutter.project_slug}}/frontend/app/reset-password/page.tsx @@ -21,7 +21,8 @@ const renderError = (type: LiteralUnion) => { switch (type) { case "required": return
This field is required.
; - case "minLength" || "maxLength": + case "minLength": + case "maxLength": return (
Your password must be between 8 and 64 characters long. diff --git a/{{cookiecutter.project_slug}}/frontend/package.json b/{{cookiecutter.project_slug}}/frontend/package.json index 4da9fa2..cf83baf 100644 --- a/{{cookiecutter.project_slug}}/frontend/package.json +++ b/{{cookiecutter.project_slug}}/frontend/package.json @@ -18,6 +18,7 @@ "@reduxjs/toolkit": "^1.9.6", "@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/forms": "^0.5.6", + "@tailwindcss/postcss": "^4.0.9", "@tailwindcss/typography": "^0.5.10", "gray-matter": "^4.0.3", "next": "^14.0.4", diff --git a/{{cookiecutter.project_slug}}/frontend/postcss.config.js b/{{cookiecutter.project_slug}}/frontend/postcss.config.js index 12a703d..d87a966 100644 --- a/{{cookiecutter.project_slug}}/frontend/postcss.config.js +++ b/{{cookiecutter.project_slug}}/frontend/postcss.config.js @@ -1,6 +1,6 @@ module.exports = { plugins: { - tailwindcss: {}, autoprefixer: {}, + '@tailwindcss/postcss': {}, }, }; diff --git a/{{cookiecutter.project_slug}}/frontend/tailwind.config.ts b/{{cookiecutter.project_slug}}/frontend/tailwind.config.ts index 8b2596f..10f053f 100644 --- a/{{cookiecutter.project_slug}}/frontend/tailwind.config.ts +++ b/{{cookiecutter.project_slug}}/frontend/tailwind.config.ts @@ -1,6 +1,6 @@ import type { Config } from "tailwindcss"; +import colors from "tailwindcss/colors"; -const colors: import("tailwindcss").Config = require("tailwindcss/colors"); module.exports = { content: [ "./pages/**/*.{js,ts,jsx,tsx,mdx}", From 0e9e1fde56d57704650e41e0f50662004f9a0aa8 Mon Sep 17 00:00:00 2001 From: Jib Date: Thu, 20 Mar 2025 10:21:21 -0400 Subject: [PATCH 3/4] Fix broken tailwindcss/postcss referencing (#64) --- .../frontend/app/assets/css/main.css | 3 ++- .../frontend/{postcss.config.js => postcss.config.mjs} | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) rename {{cookiecutter.project_slug}}/frontend/{postcss.config.js => postcss.config.mjs} (64%) diff --git a/{{cookiecutter.project_slug}}/frontend/app/assets/css/main.css b/{{cookiecutter.project_slug}}/frontend/app/assets/css/main.css index c48a7a7..1867423 100644 --- a/{{cookiecutter.project_slug}}/frontend/app/assets/css/main.css +++ b/{{cookiecutter.project_slug}}/frontend/app/assets/css/main.css @@ -1,3 +1,4 @@ +@import "tailwindcss"; @tailwind base; html, @@ -9,4 +10,4 @@ body, } @tailwind components; -@tailwind utilities; +@tailwind utilities; \ No newline at end of file diff --git a/{{cookiecutter.project_slug}}/frontend/postcss.config.js b/{{cookiecutter.project_slug}}/frontend/postcss.config.mjs similarity index 64% rename from {{cookiecutter.project_slug}}/frontend/postcss.config.js rename to {{cookiecutter.project_slug}}/frontend/postcss.config.mjs index d87a966..243faf9 100644 --- a/{{cookiecutter.project_slug}}/frontend/postcss.config.js +++ b/{{cookiecutter.project_slug}}/frontend/postcss.config.mjs @@ -1,6 +1,9 @@ -module.exports = { +const config = { plugins: { - autoprefixer: {}, '@tailwindcss/postcss': {}, + autoprefixer: {}, }, + }; + +export default config; \ No newline at end of file From ffbc2ca97388f7f90b4e24e808c26b67d5f783cf Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Fri, 9 May 2025 13:37:44 -0500 Subject: [PATCH 4/4] Fix reference to GitLab in Readme (#68) Fixes #66 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6581161..7a18d9e 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ This FastAPI, React, MongoDB repo will generate a complete web application stack - **Flower** for Celery jobs monitoring. - Load balancing between frontend and backend with **Traefik**, so you can have both under the same domain, separated by path, but served by different containers. - Traefik integration, including Let's Encrypt **HTTPS** certificates automatic generation. -- GitLab **CI** (continuous integration), including frontend and backend testing. +- GitHub **CI** (continuous integration), including frontend and backend testing. ## How to use the template