diff --git a/.gitignore b/.gitignore index a995bcd..828481a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,45 +1,8 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +# confidential +.env.local -# dependencies -/node_modules -/.pnp -.pnp.js -.yarn/install-state.gz - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts - -# bun -bun.lockb - -# ide related +# idea related .idea -# tmp git working dir -/blog_posts_git/ +# exclude post repo +/blog_posts_git diff --git a/backend/.env b/backend/.env new file mode 100644 index 0000000..c226415 --- /dev/null +++ b/backend/.env @@ -0,0 +1,6 @@ +BLOG_ENDPOINT=git@github.com:Lumither/blog-posts.git +GIT_WORK_DIR=/home/lumither/dev/blog/blog_posts_git + +BACKEND_URL=https://lumither.com/api +BACKEND_PORT=3001 +DB_CONNECTION=postgresql://localhost:5432/blog diff --git a/backend/.gitignore b/backend/.gitignore index 66a6354..e847507 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -14,3 +14,5 @@ Cargo.lock # MSVC Windows builds of rustc generate these, which store debugging information *.pdb +.env.local + diff --git a/flush_env.sh b/flush_env.sh new file mode 100644 index 0000000..f746f85 --- /dev/null +++ b/flush_env.sh @@ -0,0 +1,6 @@ +#!/bin/env bash + +cp .env ./backend +cp .env ./frontend +cp .env.local ./backend +cp .env.local ./frontend diff --git a/frontend/.env b/frontend/.env new file mode 100644 index 0000000..c226415 --- /dev/null +++ b/frontend/.env @@ -0,0 +1,6 @@ +BLOG_ENDPOINT=git@github.com:Lumither/blog-posts.git +GIT_WORK_DIR=/home/lumither/dev/blog/blog_posts_git + +BACKEND_URL=https://lumither.com/api +BACKEND_PORT=3001 +DB_CONNECTION=postgresql://localhost:5432/blog diff --git a/.eslintrc.json b/frontend/.eslintrc.json similarity index 100% rename from .eslintrc.json rename to frontend/.eslintrc.json diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..bd9b839 --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,42 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +# bun +bun.lockb + +# ide related +.idea diff --git a/app/about/page.tsx b/frontend/app/about/page.tsx similarity index 100% rename from app/about/page.tsx rename to frontend/app/about/page.tsx diff --git a/app/archive/page.tsx b/frontend/app/archive/page.tsx similarity index 100% rename from app/archive/page.tsx rename to frontend/app/archive/page.tsx diff --git a/app/blog/BlogPostCard.tsx b/frontend/app/blog/BlogPostCard.tsx similarity index 100% rename from app/blog/BlogPostCard.tsx rename to frontend/app/blog/BlogPostCard.tsx diff --git a/app/blog/fetch_posts_list.ts b/frontend/app/blog/fetch_posts_list.ts similarity index 100% rename from app/blog/fetch_posts_list.ts rename to frontend/app/blog/fetch_posts_list.ts diff --git a/app/blog/layout.tsx b/frontend/app/blog/layout.tsx similarity index 100% rename from app/blog/layout.tsx rename to frontend/app/blog/layout.tsx diff --git a/app/blog/page.tsx b/frontend/app/blog/page.tsx similarity index 100% rename from app/blog/page.tsx rename to frontend/app/blog/page.tsx diff --git a/app/blog/post/[id]/generate.tsx b/frontend/app/blog/post/[id]/generate.tsx similarity index 100% rename from app/blog/post/[id]/generate.tsx rename to frontend/app/blog/post/[id]/generate.tsx diff --git a/app/blog/post/[id]/page.tsx b/frontend/app/blog/post/[id]/page.tsx similarity index 100% rename from app/blog/post/[id]/page.tsx rename to frontend/app/blog/post/[id]/page.tsx diff --git a/app/globals.css b/frontend/app/globals.css similarity index 100% rename from app/globals.css rename to frontend/app/globals.css diff --git a/app/layout.tsx b/frontend/app/layout.tsx similarity index 100% rename from app/layout.tsx rename to frontend/app/layout.tsx diff --git a/app/page.tsx b/frontend/app/page.tsx similarity index 100% rename from app/page.tsx rename to frontend/app/page.tsx diff --git a/app/providers.tsx b/frontend/app/providers.tsx similarity index 100% rename from app/providers.tsx rename to frontend/app/providers.tsx diff --git a/app/public/MotionDiv.tsx b/frontend/app/public/MotionDiv.tsx similarity index 100% rename from app/public/MotionDiv.tsx rename to frontend/app/public/MotionDiv.tsx diff --git a/app/public/type/Result.ts b/frontend/app/public/type/Result.ts similarity index 100% rename from app/public/type/Result.ts rename to frontend/app/public/type/Result.ts diff --git a/app/search/page.tsx b/frontend/app/search/page.tsx similarity index 100% rename from app/search/page.tsx rename to frontend/app/search/page.tsx diff --git a/app/tags/page.tsx b/frontend/app/tags/page.tsx similarity index 100% rename from app/tags/page.tsx rename to frontend/app/tags/page.tsx diff --git a/components/ConstructionPlaceHolder.tsx b/frontend/components/ConstructionPlaceHolder.tsx similarity index 100% rename from components/ConstructionPlaceHolder.tsx rename to frontend/components/ConstructionPlaceHolder.tsx diff --git a/components/Footer.tsx b/frontend/components/Footer.tsx similarity index 100% rename from components/Footer.tsx rename to frontend/components/Footer.tsx diff --git a/components/Navbar.tsx b/frontend/components/Navbar.tsx similarity index 100% rename from components/Navbar.tsx rename to frontend/components/Navbar.tsx diff --git a/components/ThemeSwitcher.tsx b/frontend/components/ThemeSwitcher.tsx similarity index 100% rename from components/ThemeSwitcher.tsx rename to frontend/components/ThemeSwitcher.tsx diff --git a/next.config.mjs b/frontend/next.config.mjs similarity index 100% rename from next.config.mjs rename to frontend/next.config.mjs diff --git a/package.json b/frontend/package.json similarity index 100% rename from package.json rename to frontend/package.json diff --git a/postcss.config.mjs b/frontend/postcss.config.mjs similarity index 100% rename from postcss.config.mjs rename to frontend/postcss.config.mjs diff --git a/tailwind.config.ts b/frontend/tailwind.config.ts similarity index 100% rename from tailwind.config.ts rename to frontend/tailwind.config.ts diff --git a/tsconfig.json b/frontend/tsconfig.json similarity index 100% rename from tsconfig.json rename to frontend/tsconfig.json