Commit Graph
24 Commits
Author SHA1 Message Date
KKlochko 94e2ff7609 Add a feature to delete an article for the admin panel. 2024-04-09 21:53:19 +03:00
KKlochko 72cbb71d55 Add the delete-article to delete an article by the id. 2024-04-09 20:51:37 +03:00
KKlochko 75a3f7737d Add the date-fns as a dependency for date formating. 2024-04-09 19:52:24 +03:00
KKlochko 20ed9e09dc Add a feature to preview a article for the admin panel. 2024-04-09 19:49:34 +03:00
KKlochko f78df3d232 Add the routes and handlers for the admin panel. 2024-04-02 14:52:24 +03:00
KKlochko 947381b229 Add the HTMX's head tag to the main layout. 2024-04-02 14:47:58 +03:00
KKlochko 80ea6f85d8 Add templates for the admin panel. 2024-04-02 14:47:27 +03:00
KKlochko 2b1ea5d806 Add function to insert a new article. 2024-04-02 13:28:27 +03:00
KKlochko 46f017d716 Add the handler factories for index and article pages. 2024-04-01 21:33:46 +03:00
KKlochko bfef190c91 Update the get-article to return data as a cljs map without arrays. 2024-04-01 21:22:21 +03:00
KKlochko 00895abe0c Add views and partials for the index page and the article block. 2024-04-01 21:16:17 +03:00
KKlochko 1abc086b29 Update the shadow-cljs config to move index.js to the project's root. 2024-04-01 20:56:32 +03:00
KKlochko ff2ad7de9d Add the express-handlebars as a template engine. 2024-04-01 20:55:41 +03:00
KKlochko 1ad0610f19 Add a function to get an article by id. 2024-03-27 17:12:29 +02:00
KKlochko c7223f0a00 Add the get-articles to read all articles. 2024-03-27 16:19:53 +02:00
KKlochko 3b70a1a497 Add a function to create tables. 2024-03-27 16:16:49 +02:00
KKlochko 5954224327 Add the db module with functions to create the connection. 2024-03-27 15:57:55 +02:00
KKlochko 50521a8cc9 Add the environment variables for database credentials. 2024-03-27 15:55:56 +02:00
KKlochko af1e2adbc4 Add the pg as the postgres client to the dependencies. 2024-03-27 15:53:41 +02:00
KKlochko 39b8c633b0 Update to move server logic to the server module. 2024-03-27 14:40:25 +02:00
KKlochko a092283cf2 Add the environment variables support. 2024-03-27 14:28:44 +02:00
KKlochko bd8d737758 Add the simple endpoint and the configuration. 2024-03-26 21:07:26 +02:00
KKlochko 614bed7899 Add the express to the dependencies. 2024-03-26 21:06:39 +02:00
KKlochko 99f13dd320 Project initialization. 2024-03-26 21:01:21 +02:00