73984635e1
Flask has needs to see that the index.html template is in /app/templates/
, not just /templates/
2025-04-04 15:04:46 -06:00
e6d73c8c0a
Move entrypoint.sh into top-level to kickstart docker image building
2025-04-04 14:59:05 -06:00
f85c05ca9a
Fix location of DATABASE_PATH in the example.env
2025-04-04 14:55:38 -06:00
e25cdca466
Making the header/title are a variable
...
Refactor Dockerfile and entrypoint script; add index.html.template and update example.env
2025-04-04 14:46:29 -06:00
9f462c4c0a
Removed development Dockerfile, updated .gitignore to exclude docker-compose and added new example.docker-compose.yml
2025-04-04 14:28:26 -06:00
f4466b8a67
Delete docker-compose.yml
...
Cleaning up files so it's easier to deploy. Look for example.docker-compose.yml instead
2025-04-04 14:20:04 -06:00
Steve Dogiakos
c1f9ab05b4
Push the Docker image to Docker Hub
2025-04-04 14:07:11 -06:00
61a45200a5
Delete .env
...
Just making the example.env available to the public.
2025-04-04 13:51:14 -06:00
Steve Dogiakos
ab83c39c91
Created example.env so I don't have to keep messing
...
with my setup.
2025-04-04 13:50:13 -06:00
bd706c8a81
Create LICENSE
...
Adding the MIT license to the project
2025-04-02 19:47:44 -06:00
de6938d278
Update docker-image.yml
...
changed secrete to vars for DOCKER_USERNAME
2025-04-02 19:36:36 -06:00
e0a0c397cc
Update README.md
...
Added section about API use
2025-04-02 19:28:21 -06:00
db2acddbc6
trying a docker action workflow
...
Added Docker secrets so hopefully it will run now.
2025-04-02 18:16:53 -06:00
Steve Dogiakos
2ed6e7c7b0
accidentally introduced duplicate email fields in the last commit. this commits fixes it.
2025-04-02 15:48:56 -06:00
Steve Dogiakos
9b244e1661
Add API to app.py so I can use n8n to export the entries.
...
Added opt-out newsletter checkbox and the appropriate places to insert it to the db.
2025-04-02 15:31:33 -06:00
Steve Dogiakos
3411b48dcf
deleted workflow because I don't want to sign into dockerhub
2025-04-02 09:44:59 -06:00
Steve Dogiakos
35ac31be7f
Rename production.Dockerfile to development.Dockerfile.
...
It was a late night, ok? Updated README.md to include removal of DB from repo.
2025-04-02 09:29:25 -06:00
babbc43806
Create docker-image.yml
2025-04-02 08:38:24 -06:00
834c81289f
Delete scripts/guestbook.db
...
Remove guestbook.db from repository
- Deleted guestbook.db, a binary SQLite database file, from the repo.
- Added guestbook.db to .gitignore to prevent storing environment-specific binaries.
- This change enhances security and keeps the repository clean by not tracking generated files.
1.0.0
2025-04-02 08:05:08 -06:00
Steve Dogiakos
241c563c6d
Add screenshot to README.md lint MD for file. Add .db and VS Code files to .gitignore
2025-04-02 08:02:47 -06:00
Steve Dogiakos
79bbb02388
Updated guestbook_export.py so that the export
2025-04-01 22:17:18 -06:00
Steve Dogiakos
5d71d778f8
added python focused .gitignore. Attempted to update .env but it might not take due to .gitignore.
2025-04-01 22:12:24 -06:00
Steve Dogiakos
320e358aa6
Updated the project structure to reflect the current structure.
2025-04-01 22:09:54 -06:00
Steve Dogiakos
a16b28d078
Revised the README.md to reflect the current state of the project.
2025-04-01 22:04:35 -06:00
Steve Dogiakos
581a96d634
Lint and update docker-compose.yml
...
- Fixed port variable interpolation to use ${PORT:-8000} for a default value.
- Updated volume configuration to use a named volume (guestbook_data) mounted at /data.
- Improved YAML formatting for clarity.
2025-04-01 21:53:25 -06:00
Steve Dogiakos
4ce2544038
Add logo to the header
2025-04-01 21:00:24 -06:00
Steve Dogiakos
524fc06913
Bump Wekzeug to 3.0.6
2025-04-01 19:56:39 -06:00
30240f4ba8
Merge pull request #1 from tmdinosaurcenter/dependabot/pip/flask-2.2.5
...
Bump flask from 2.1.1 to 2.2.5
2025-04-01 19:53:33 -06:00
dependabot[bot]
702015ee9f
Bump flask from 2.1.1 to 2.2.5
...
Bumps [flask](https://github.com/pallets/flask ) from 2.1.1 to 2.2.5.
- [Release notes](https://github.com/pallets/flask/releases )
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/flask/compare/2.1.1...2.2.5 )
---
updated-dependencies:
- dependency-name: flask
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 01:46:15 +00:00
Steve Dogiakos
4ba6a77ff2
Add dynamic comment field display
...
- Hide comment field by default.
- Add JavaScript to reveal comment field when first name, last name, and location have at least 3 characters.
- Update form instructions to inform users about the comment field.
2025-04-01 19:19:28 -06:00
Steve Dogiakos
b51f88344d
Created guestbook_export.py which is tailored specifically toward exporting for MailChimp
2025-04-01 18:48:04 -06:00
Steve Dogiakos
9ce656a963
Add form instructions and make email optional
...
- Display brief instructions above the guestbook form.
- Update validation: require first name, last name, and location; make email optional.
- Remove the 'required' attribute from the email input field.
- Provide context in the UI so users understand why email is optional.
2025-04-01 18:38:39 -06:00
Steve Dogiakos
4623e014a5
Add scrolling marquee for guest entries
...
- Update index.html to include a fixed, horizontally scrolling marquee at the bottom.
- Use CSS keyframes to animate guest entries, showing first name and location.
- Enhance user interface by providing a dynamic display of entries.
2025-04-01 18:33:06 -06:00
Steve Dogiakos
3652a3b98a
Add basic logging
...
- Configure Python logging at INFO level.
- Log key events: database initialization, incoming requests, validation errors, and successful guest submissions.
- Log the number of guest entries displayed when rendering the page.
This improves observability and helps with troubleshooting.
2025-04-01 18:06:10 -06:00
Steve Dogiakos
83775b716f
Add server-side input validation
...
- Validate that first_name, last_name, email, and location are provided
- Add regex-based email format validation in app.py
- Display error messages on the guestbook form if validation fails
These changes help ensure that only properly formatted data is stored.
2025-04-01 18:01:58 -06:00
Steve Dogiakos
e18fd5fffa
Split out name to first and last, only displaying First name field and location field.
2025-04-01 17:40:08 -06:00
35563a4d08
Merge branch 'html-form' of https://github.com/tmdinosaurcenter/kiosk-guestbook into html-form
2025-04-01 17:28:27 -06:00
Steve Dogiakos
128f0b924e
fixed requirements.txt by pinning to lower version
2025-04-01 17:28:09 -06:00
7e4d2621d3
Make readme relevant to this branch
2025-04-01 17:19:43 -06:00
e7b1560447
Migrate application from Node.js to Flask, removing Node dependencies and adding Flask requirements. Foregoing the Google Form for a simpler MVP using a simple HTML form and SQLite db
2025-04-01 16:55:34 -06:00
be54d04114
Add express dependency to package.json to fix missing module issue
2025-01-27 16:06:00 -07:00
c99396f263
Fixed some README.md formatting
2025-01-27 13:58:30 -07:00
626fa3d4a6
adding public folder
2025-01-27 13:47:35 -07:00
98870d51f1
Steve's initial commit
2025-01-27 13:25:14 -07:00
2e421a2075
Initial commit
2025-01-27 13:12:16 -07:00