-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfolderStructure.txt
More file actions
61 lines (61 loc) · 2.7 KB
/
folderStructure.txt
File metadata and controls
61 lines (61 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
copay/
├── public/ # Static files (served directly)
│ ├── index.html # Main HTML entry point
│ ├── assets/ # Static assets
│ │ ├── css/ # Global styles
│ │ ├── js/ # Third-party scripts
│ │ ├── images/ # Images/SVGs
│ │ └── fonts/ # Custom fonts
│ └── dashboard.html # Additional pages (if SPA not used)
│
├── server/ # Backend (Node.js)
│ ├── config/ # Config files
│ │ └── db.js # Database config
│ ├── controllers/ # Route handlers
│ │ ├── authController.js
│ │ └── paymentController.js
│ ├── models/ # Database models
│ │ ├── User.js
│ │ └── Transaction.js
│ ├── routes/ # API endpoints
│ │ ├── api.js # Main API router
│ │ └── webhooks.js # Payment webhooks
│ ├── services/ # Business logic
│ │ ├── blockchain.js # Crypto payment processor
│ │ └── emailService.js
│ ├── utils/ # Helpers
│ │ ├── logger.js
│ │ └── validation.js
│ ├── app.js # Express app setup
│ └── server.js # Server entry point
│
├── src/ # Frontend JavaScript
│ ├── lib/ # Reusable utilities
│ │ ├── api.js # API request wrapper
│ │ └── currencyUtils.js
│ ├── modules/ # Feature modules
│ │ ├── auth/ # Auth related code
│ │ │ ├── login.js
│ │ │ └── register.js
│ │ └── payments/ # Payment flows
│ │ ├── bitcoin.js
│ │ └── ethereum.js
│ ├── main.js # Main app initialization
│ └── dashboard.js # Page-specific logic
│
├── tests/
│ ├── unit/ # Unit tests
│ │ ├── server/
│ │ └── client/
│ ├── integration/ # Integration tests
│ └── e2e/ # End-to-end tests
│
├── scripts/ # Automation scripts
│ ├── deploy.sh # Deployment script
│ └── seed-db.js # Database seeding
│
├── .env # Environment variables
├── .gitignore
├── package.json # Root dependencies
├── README.md
└── LICENSE