Commit Graph
204 Commits
Author SHA1 Message Date
Florian Sylvain ed5d52a506 fix: standardized ID retrieval in routes with IDs 2024-05-20 12:42:12 +02:00
Florian Sylvain 5e9098aa20 Merge pull request #34 from Floriansylvain/feature/postDeletion
feat: post deletion
2024-05-19 17:20:26 +02:00
Florian Sylvain 7d2795a9e0 feat: post deletion 2024-05-19 17:12:48 +02:00
Florian Sylvain 1b6690802f Merge pull request #33 from Floriansylvain/feature/postCreation
Feature/post creation
2024-05-18 12:48:08 +02:00
Florian Sylvain c1317e9f21 vcs: removed bootstrap svg icons 2024-05-18 12:46:42 +02:00
Florian Sylvain 92c6d06d00 feat: post edition save 2024-05-18 12:24:54 +02:00
Florian Sylvain 900ad3e8b8 feat: post list and edition redirect 2024-05-17 16:38:41 +02:00
Florian Sylvain 24eefb743b feat: post creation WIP 2024-05-16 19:30:33 +02:00
Florian Sylvain 29fce9a241 brand: GohCMS -> GoCMS, project-wide 2024-05-15 19:34:38 +02:00
Florian Sylvain 7097d71f45 Merge pull request #31 from Floriansylvain/feature/registerCancel
feat: complete email verification flow
2024-05-15 19:19:43 +02:00
Florian Sylvain a35e7c4283 feat: complete email verification flow 2024-05-15 19:16:55 +02:00
Florian Sylvain aabdbfae95 Merge pull request #30 from Floriansylvain/feature/authMailing
Feature/auth mailing
2024-05-15 13:53:20 +02:00
Florian Sylvain 6c54c9607c Update go.yml 2024-05-15 13:48:49 +02:00
Florian Sylvain 9c4d4fa87c Update go.yml 2024-05-15 13:43:59 +02:00
Florian Sylvain a331c9173b Update go.yml 2024-05-15 13:22:35 +02:00
Florian Sylvain 830b062a76 Update go.yml 2024-05-15 13:07:13 +02:00
Florian Sylvain 3b57961946 Update go.yml 2024-05-15 12:12:53 +02:00
Florian Sylvain c929acd4ab feat: email verification flow (not 100% complete) 2024-05-15 12:04:30 +02:00
Florian Sylvain 37647e60d9 fix: changed my mind on hash cost 2024-05-15 08:38:05 +02:00
Florian Sylvain 1a75615be4 fix: reduced too expensive passwords hash cost 2024-05-15 08:32:01 +02:00
Florian Sylvain 4d6a799c5d fix: comparing verificationCode hashes 2024-05-14 20:41:33 +02:00
Florian Sylvain ec14eee439 feat: WIP mail verification flow 2024-05-14 19:37:44 +02:00
Florian Sylvain 8015639db5 feat: WIP auth mailing implementation 2024-05-13 19:22:56 +02:00
Florian Sylvain d146363246 tech: updated dependencies 2024-05-13 13:28:24 +02:00
Florian Sylvain 00a4e464ff clean: refactor auth & login page auth 2024-05-13 11:11:58 +02:00
Florian Sylvain dca17a744d doc: added .env example file and e.g. for DOCKER_DB_FOLDER 2024-04-26 07:56:18 +02:00
Florian Sylvain 2eae066a24 fix: added recursion on linguist-vendored attribute 2024-04-26 07:42:42 +02:00
Florian Sylvain c90fa26c73 tech: removed api/static/* from github lang analysis 2024-04-26 07:39:43 +02:00
Florian Sylvain 33cd947958 clean: refactor DI and container initialization 2024-04-26 06:58:43 +02:00
Florian Sylvain 2805425317 fix: removed localhost from server hostname 2023-12-04 16:28:13 +01:00
Florian Sylvain 411adc02b0 fix: copy .env into container 2023-12-04 15:31:24 +01:00
Florian Sylvain c663bcf4a9 Update: Improved UI and functionality of posts and post-edit pages
This change includes both UI and functionality enhancements in 'posts.html' and 'postEdit.html' within the web templates directory. For posts.html, the caption under the table of posts has been replaced with a paragraph tag for better readability. A more comprehensive redesign has been done on postEdit.html, ensuring a more user-friendly page layout with enhanced post edition capabilities. In addition, minor updates were made to the go.sum and go.mod file as a result of new dependencies and versions required by these changes.
2023-10-31 16:07:45 +01:00
Florian Sylvain 777666a92f clean: removed unwanted build file 2023-10-16 10:02:04 +02:00
Florian Sylvain 55d9e3bfc1 clean: english
The changes in this commit were made to translate the website's text content from French to English, as part of efforts to ensure the platform is more accessible to a wider audience. This includes translation of user-facing instructions, button labels, form fields, and messages across multiple templates including home.html, setup1.html, setup2.html, and login.html among others.
2023-10-16 09:47:04 +02:00
Florian Sylvain 7d071ebc2e clean: refactor templates to use a common head section
This commit introduces a refactoring in various page templates to use a central, common 'head' section, stored under utilsHead.html. This head section contains common metadata, styles, and scripts. This change enhances code reusability and standardizes the head section across different pages for consistent user experience and ease of future potential changes. Also, some minimal adjustments were made in the navigation and link routing for more user-friendly URL paths. Lastly, the server's listening interface was updated to only listen on the localhost.
2023-10-11 20:28:00 +02:00
Florian Sylvain c2b64bf0fa feat: post pages placeholders + tinymce lib 2023-09-06 04:48:16 +02:00
Florian Sylvain ea942355ab feat: templ_static_files_validator
super_build.bat script was removed because it became unnecessary after transitioning to a Docker-based build process which provides cross-platform build capability more efficiently (and Windows scripting sucks). Also added templ_static_files_validator.sh that validates existence of files linked in HTML within the specified directory. Can be useful when working on frontend to make sure static files will load properly.
2023-09-06 04:36:14 +02:00
Florian Sylvain e113c79a6d fix: all remaining "article" replaced by "post"
All instances of the term "article" were replaced with "post" in variable names, type names, function names, etc. This was primarily to ensure consistent naming and reduce confusion going forward. The term "post" was chosen as it's a more commonly used term for the involved operations in the context of content management and blogging platforms. All tests were also updated to reflect these changes.
2023-09-06 03:38:52 +02:00
Florian Sylvain 509329951f clean: Article to Post in post.go
Changes was made to keep consistency in terminology across the application.
2023-09-06 03:32:44 +02:00
Florian Sylvain 5bd4b4769f feat: Posts page impl and associated routes
Implemented a new 'Posts' page which has been added to the main navigation. This includes:
- Adding the 'posts.html' template with basic HTML and related CSS/JS
- Updating the 'componentNavbar.html' template to include a link to the new Posts page
- Writing the 'GetPostsPage' function in 'api/page.go' to handle requests for the Posts page
- Modifying the 'home.html' template to provide a link towards the Posts Page
- Adding an associated route in 'api/page.go'.
2023-09-06 02:20:27 +02:00
Florian Sylvain 554fdc1989 clean: Article to Post in domain and related use cases
Renamed the 'Article' domain to 'Post' in order to better reflect the purpose and utility of the object. The change involved renaming all related use cases, classes, and other references from 'Article' to 'Post' and updating all functions and data types to work with Posts instead of Articles.
2023-09-06 01:56:27 +02:00
Florian Sylvain 46491a688b clean: refacto User and Article repos for clarity
Simplified the code for creating and returning user and article entities in userRepository.go and articleRepository.go. Direct function calls to domain.FromDb(...) were replaced with the more descriptive mapping functions mapUserToDomain(...) and mapArticleToDomain(...). This ensures better code readability and understanding and provides a single, consistent way to map database entities to domain entities.
2023-08-17 05:55:31 +02:00
Florian Sylvain d91dc256a2 feat: docker and docker-compose support
Introduced a Dockerfile and compose.yml to allow the application to run inside a Docker container. This removes the need for local system-level dependencies and offers a more predictable environment for the app. README.md was updated to include Docker-related instructions and an additional environment variable `DOCKER_DB_FOLDER` was added on top of existing ones for Docker support.
2023-08-13 23:40:12 +02:00
Florian Sylvain 60e25cea2f fix: set "DB_FILE" environment variable in tests
This commit adds a line to set the "DB_FILE" environment variable in tests. This ensures that tests are always using "test.db" for database related operations, aligning testing environment accurately which guarantees consistent results.
2023-08-13 21:41:04 +02:00
Florian Sylvain a785483220 fix: error messages and modify password validation
This commit enhances the user experience in two ways:

1. The feedback messages within the setup1.html file have been updated for both the username and password fields. The new messages better inform users about the rules for valid input— stating that the username must be 3-20 characters long and the password must contain at least eight characters.

2. The password validation process has been adjusted. Now, only the confirm password field gets marked as invalid when the entered passwords don't match. This helps users understand exactly which field needs correction.
2023-08-13 21:40:17 +02:00
Florian Sylvain b414a07f6d fix: added missing DB_FILE env var 2023-08-13 04:36:48 +02:00
Florian Sylvain 245bf2fbf4 feat: environment specific database handling
Changes have been made to support environment specific database file handling. By introducing a new environment variable "DB_FILE", the application's runtime now reads the database file path from the environment. In addition, subdirectories will now be automatically created if they don't exist and more detailed error messages will be printed in case of a failure. Environment variable setup and project building instructions were also updated in the README file.
2023-08-13 04:34:30 +02:00
Florian Sylvain 64ecbc6995 clean: removed ignored err var declaration 2023-08-13 03:21:47 +02:00
Florian Sylvain c6bd7731cc clean: removed use of "." in imports 2023-08-13 02:48:19 +02:00
Florian Sylvain 2525a64d0a feat: client form validation on register page 2023-08-13 01:42:01 +02:00