| | 1 | = Build Instructions |
| | 2 | |
| | 3 | == Technology Stack |
| | 4 | |
| | 5 | - Backend: Node.js with Express.js |
| | 6 | - Frontend: EJS with CSS |
| | 7 | - File Uploads: Multer |
| | 8 | |
| | 9 | == Required Software |
| | 10 | |
| | 11 | Node.js, |
| | 12 | npm |
| | 13 | |
| | 14 | == Setup Instructions |
| | 15 | |
| | 16 | Install Dependencies with |
| | 17 | {{{npm install}}} |
| | 18 | |
| | 19 | Configure Environment |
| | 20 | |
| | 21 | Create a `.env` file in the project root: |
| | 22 | {{{ |
| | 23 | # SSH |
| | 24 | SSH_HOST=194.149.135.130 |
| | 25 | SSH_PORT=22 |
| | 26 | SSH_USER=t_c307 |
| | 27 | SSH_PASSWORD= |
| | 28 | |
| | 29 | # Database |
| | 30 | DB_HOST=localhost |
| | 31 | DB_PORT=5432 |
| | 32 | DB_USER=db_202526z_va_prj_c307_owner |
| | 33 | DB_PASSWORD= |
| | 34 | DB_NAME=db_202526z_va_prj_c307 |
| | 35 | DB_SCHEMA=project |
| | 36 | |
| | 37 | # Server |
| | 38 | PORT=3000 |
| | 39 | NODE_ENV=development |
| | 40 | }}} |
| | 41 | |
| | 42 | Note: project passwords left empty and should be filled in. |
| | 43 | |
| | 44 | Running the application is done with: |
| | 45 | {{{ |
| | 46 | npm run dev |
| | 47 | }}} |
| | 48 | |
| | 49 | == Testing Instructions |
| | 50 | |
| | 51 | === Access the Prototype |
| | 52 | |
| | 53 | In a web browser: **http://localhost:3000** |
| | 54 | |
| | 55 | == Notes |
| | 56 | |
| | 57 | - No authentication required (prototype only) |
| | 58 | - Admin functions use hardcoded to "Nikola" admin |
| | 59 | - All uploaded files stored in `public/uploads/` |
| | 60 | |