Skip to content

Commit 0609049

Browse files
app rewrite
1 parent b4f630b commit 0609049

78 files changed

Lines changed: 89 additions & 17320 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
2-
dvws-svelte/node_modules
3-
dvws-svelte/.svelte-kit
4-
dvws-svelte/build
5-
public-legacy
2+
frontend/node_modules
3+
frontend/.svelte-kit
4+
frontend/build

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN npm install
2121
COPY . .
2222

2323
# Build Svelte frontend (outputs directly to ../public via adapter-static config)
24-
RUN cd dvws-svelte && npm install && npm run build
24+
RUN cd frontend && npm install && npm run build
2525

2626
# Expose ports
2727
EXPOSE 80

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ If the DVWS web service doesn't start because of delayed MongoDB or MySQL setup,
132132

133133

134134
## Solutions
135-
* [DVWS Solutions Wiki](https://github.com/snoopysecurity/dvws-node/wiki)
135+
* [DVWS Solutions]([https://github.com/snoopysecurity/dvws-node/wiki](https://github.com/snoopysecurity/dvws-node/blob/master/CHALLENGES.md))
136136

137137

138138

dvws-svelte/README.md

Lines changed: 0 additions & 287 deletions
This file was deleted.
File renamed without changes.

frontend/README.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# DVWS-Node Svelte Frontend
2+
3+
Modern, professional frontend rewrite for DVWS-Node (Damn Vulnerable Web Services) using Svelte 5.
4+
5+
6+
## Technology Stack
7+
8+
- **Framework:** SvelteKit 2.x with Svelte 5 (runes mode)
9+
- **Language:** TypeScript
10+
- **Styling:** Custom CSS (Tailwind-like utilities)
11+
- **HTTP Client:** Axios
12+
- **Build Tool:** Vite 8.x
13+
- **Deployment:** Static adapter (serves from Express.js)
14+
15+
## Project Structure
16+
17+
```
18+
frontend/
19+
├── src/
20+
│ ├── lib/
21+
│ │ ├── api/ # API client with JWT injection
22+
│ │ ├── stores/ # Svelte stores (auth, notifications)
23+
│ │ ├── components/
24+
│ │ │ ├── ui/ # Reusable UI components
25+
│ │ │ ├── layout/ # Layout components (Sidebar, TopBar)
26+
│ │ │ └── vulnerable/ # Intentionally vulnerable components
27+
│ │ ├── utils/ # Utilities (passgen.js)
28+
│ │ └── types/ # TypeScript types
29+
│ ├── routes/
30+
│ │ ├── +page.svelte # Login/Register
31+
│ │ ├── (app)/ # Protected routes
32+
│ │ │ ├── dashboard/ # Dashboard
33+
│ │ │ ├── notes/ # Notes CRUD + Import
34+
│ │ │ ├── admin/ # Admin panel
35+
│ │ │ ├── profile/ # Profile export/import
36+
│ │ │ ├── search/ # Public notes search
37+
│ │ │ ├── passphrase/ # Passphrase generator
38+
│ │ │ └── files/ # File upload/download
39+
│ │ └── logout/ # Logout
40+
│ └── app.css # Global styles
41+
├── build/ # Production build (gitignored)
42+
└── static/ # Static assets
43+
```
44+
45+
## Development
46+
47+
### Prerequisites
48+
49+
- Node.js 20.x or later
50+
- npm 10.x or later
51+
52+
### Setup
53+
54+
```bash
55+
cd frontend
56+
npm install
57+
```
58+
59+
### Development Server
60+
61+
```bash
62+
npm run dev
63+
```
64+
65+
Opens at `http://localhost:5173`
66+
67+
### Build for Production
68+
69+
```bash
70+
npm run build
71+
```
72+
73+
Output: `build/` directory
74+
75+
### Preview Production Build
76+
77+
```bash
78+
npm run preview
79+
```
File renamed without changes.

0 commit comments

Comments
 (0)