This is a readme file to provide information about the project file structure and setup configuration.
You can host this website on Render: https://render.com/
/web
- Contains all the source code files for showing the website.- The root directory contains the configuration of Dockerfile and other configurations for hosting the website on Render.
-
The website is built using PostgreSQL and Docker on Render. To build the website, you should add new Web Service on Render and select Docker as the image. Then, you should add new PostgreSQL configuration on Render, and then change the database configuration in db_connect.php after creating your own database.
-
To set up the project in Render, you may encounter the building error during building the imagick module:
solution: Clear build cache & deploy the website multiple times until it is deployed successfully.
- (bonus) Implemented System Initialization for admin account.
- (bonus) Implemented File type checking for photo uploading.
- (bonus) Input validation: The system can display an error message if a user clicks on the "Upload" button when no file is chosen to be uploaded.
- The system will prompt error when login is failed.
- (bonus) Input validation: Validate login username and password using htmlspecialchars() to avoid code injection.
- Displaying resized version of uploaded photos and linking those resized photos to the original photos in index page.
- Failed to implement black and white filter