You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-2Lines changed: 39 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This web application facilitates connections between restaurants looking to prom
9
9
## Tech Stack
10
10
11
11
-**Backend**: PHP
12
-
-**Database**: MySQL (MariaDB)
12
+
-**Database**: MySQL (MariaDB) / AWS RDS
13
13
-**Frontend**: HTML, CSS, JavaScript
14
14
-**Server**: Nginx
15
15
-**Containerization**: Docker & Docker Compose
@@ -86,6 +86,28 @@ This web application facilitates connections between restaurants looking to prom
86
86
└── php.ini # PHP configuration
87
87
```
88
88
89
+
## Database Configuration
90
+
91
+
The application can use either a local Docker-based MariaDB instance or AWS RDS:
92
+
93
+
### Local Docker Database (Development)
94
+
95
+
- Database: MariaDB
96
+
- Host: `db` (Docker service name)
97
+
- Username: `mktuser`
98
+
- Password: `mkpass`
99
+
- Database name: `marketplace`
100
+
101
+
### AWS RDS (Production)
102
+
103
+
- Database: MariaDB/MySQL on AWS RDS
104
+
- Host: `ourawork.ckb40aqwiavq.us-east-1.rds.amazonaws.com` (or your RDS endpoint)
105
+
- Username: `admin` (or your RDS username)
106
+
- Password: Your RDS password
107
+
- Database name: `marketplace`
108
+
109
+
The database connection is configured in `html/includes/db_connect.php`. To switch between environments, update the connection parameters in this file.
110
+
89
111
## Database Schema
90
112
91
113
The application uses the following database tables:
@@ -385,10 +407,25 @@ If experiencing "413 Request Entity Too Large" errors:
385
407
If experiencing database connection problems:
386
408
387
409
- Verify database credentials in db_connect.php
388
-
- Check if the database container is running
410
+
- Check if the database container is running (for local development)
389
411
- Ensure the schema has been imported
390
412
-**If you get an error about the 'role' column not accepting 'admin', see the Seeding section above for how to alter the table.**
391
413
414
+
#### AWS RDS Specific Issues
415
+
416
+
- Make sure your server's IP address is allowed in the RDS security group
417
+
- Verify that the RDS instance is publicly accessible
0 commit comments