aboutsummaryrefslogtreecommitdiff
path: root/main.go
AgeCommit message (Collapse)Author
2024-10-21Do not list ideas redirect: redirect insteadRaymaekers Luca
2024-10-12Split server code and http codeRaymaekers Luca
Create multiple instances of Ideez by running NewIdeez(), after creating they can be added to the Ideezes slice to manage them. NewIdeez() imports the data and registers the routes. main.go has the code for managing the instances and server.go has the code coupled to a single instance. For eg. main.go has the code which checks files with .data extension in data directory, and imports servers on startup. - Add import functionality - Add nginx configuration - Add style and copy animation - Check for https with "X-Forwarded-Proto" - Change assets and templates to reflect the new id change - Change port to 15118 - Add Id field to Idea - Do not check for duplicate titles anymore - Extract ideez_servers into const variable - Extract documentation in doc.go - Rename Server -> Ideez - Rename t_idea/ -> templates/ - Fix cancel not working with form by using javascript instead - Set logger prefix in different contexts
2024-10-09add (edit) on date field after idea is editedRaymaekers Luca
2024-10-09Change CreatedAt to LastUpdatedRaymaekers Luca
- The field now changes when the idea is edited.
2024-09-30Removed the comment coedv0.2.0Raymaekers Luca
2024-09-29Added / -> /ideas/ redirectionRaymaekers Luca
2024-09-29Added edit functionalityv0.1.0Raymaekers Luca
Added a new edit functionality and page with styling. Other minor changes: - Added assets folder served under /static/ - Created a new template edit.html - grouped ideas.html and edit.html under t_idea - Changed router to use mux and organized routes - Added more checks on empty titles - Added javascript to t_idea/index.html for intuitive button functionality
2024-09-28Added create data file if not existRaymaekers Luca
2024-09-28added ui changesRaymaekers Luca
- Added a delete button next to each idea instead of deleting them by name - Changed Post to Think - Added a text when there are no ideas - Added more CSS for the create - Added checks for denying empty fields
2024-09-28Added Idea CRDRaymaekers Luca
- Also added sending back errors to the template for displaying what went wrong. - Renamed Description to Text - Added Delete operation for an idea - Removed Store type because it had no real value
2024-09-27Added datafile for persistent ideasRaymaekers Luca
The data file uses a version number for debugging and is serialized into a data file, for now this is good enough but because of encapsulating the data in a struct there is no convenient way of appending to the Ideas slice. - Removed the Rating as it is not really constructive. - Added handling of SIGINT to keep the data even on exit from air of Ctrl-c - Removed example data - Use log instaed of fmt everywhere - Removed Makefile
2024-09-27initRaymaekers Luca