-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set up basic frontend and separate frontend and backend (#9)
* set up redirect * separate backend and frontend part 1 * separate backend and frontend part 2 * separate backend * remove obsolete route * first svelte setup * crawling forward * intermittent commit * remove initial ansatz * redo with svelte-kit and vite * update packages * remove packages * update pages * update dependencies and css conflicts * update gitignore * with server-side actions * include test changes * add frontend data * set up map * update dockerfile and build env * set up docker compose nhinx reverse proxy * add package manager info * add dev coverage
- Loading branch information
Showing
53 changed files
with
5,518 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
FROM python | ||
FROM node:20-slim AS base | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
|
||
WORKDIR /app | ||
COPY src/app/frontend /app | ||
|
||
FROM base AS prod-deps | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile | ||
|
||
COPY ./src/app /app | ||
COPY ./requirements.txt /app | ||
FROM base AS build | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | ||
RUN pnpm run build | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install -r requirements.txt | ||
FROM base | ||
COPY --from=prod-deps /app/node_modules /app/node_modules | ||
COPY --from=build /app/dist /app/dist | ||
EXPOSE 8000 | ||
CMD [ "pnpm", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: 50 | ||
patch: | ||
default: | ||
target: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"name": "donation-webserver", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"start": "node build", | ||
"test": "playwright test", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"test:unit": "vitest", | ||
"lint": "prettier --plugin-search-dir . --check . && eslint .", | ||
"format": "prettier --plugin-search-dir . --write .", | ||
"gh-pages": "npm run build && npx gh-pages -d build" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.49.1", | ||
"@sveltejs/adapter-auto": "^3.3.1", | ||
"@sveltejs/adapter-node": "^5.2.11", | ||
"@sveltejs/kit": "^2.15.2", | ||
"@typescript-eslint/eslint-plugin": "^8.19.1", | ||
"@typescript-eslint/parser": "^8.19.1", | ||
"autoprefixer": "^10.4.20", | ||
"eslint": "^9.17.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-svelte3": "^4.0.0", | ||
"gh-pages": "^6.3.0", | ||
"postcss": "^8.4.49", | ||
"postcss-load-config": "^6.0.1", | ||
"prettier": "^3.4.2", | ||
"prettier-plugin-svelte": "^3.3.2", | ||
"svelte": "^5.17.3", | ||
"svelte-check": "^4.1.3", | ||
"svelte-preprocess": "^6.0.3", | ||
"tailwindcss": "^3.4.17", | ||
"tslib": "^2.8.1", | ||
"typescript": "^5.7.3", | ||
"vite": "^5.4.11", | ||
"vitest": "^2.1.8" | ||
}, | ||
"dependencies": { | ||
"@popperjs/core": "^2.11.8", | ||
"@sveltejs/vite-plugin-svelte": "^4.0.4", | ||
"classnames": "^2.5.1", | ||
"flowbite": "^2.5.2", | ||
"flowbite-svelte": "^0.47.4", | ||
"flowbite-svelte-icons": "^2.0.2", | ||
"globrex": "^0.1.2", | ||
"pnpm": "^9.15.3", | ||
"svelte-awesome-icons": "^2.0.1" | ||
}, | ||
"packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { PlaywrightTestConfig } from '@playwright/test'; | ||
|
||
const config: PlaywrightTestConfig = { | ||
webServer: { | ||
command: 'npm run build && npm run preview', | ||
port: 4173 | ||
}, | ||
testDir: 'tests' | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.