{"id":19125434,"url":"https://github.com/aracki/ssa-clojure","last_synced_at":"2026-05-03T11:33:58.205Z","repository":{"id":92274128,"uuid":"42007610","full_name":"Aracki/ssa-clojure","owner":"Aracki","description":"Small web app - written in clojure - functional programming practice","archived":false,"fork":false,"pushed_at":"2015-09-27T17:32:02.000Z","size":10364,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T09:44:56.347Z","etag":null,"topics":["bootstrap","clojure","database","html-page"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aracki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-06T15:29:14.000Z","updated_at":"2020-07-29T22:03:38.000Z","dependencies_parsed_at":"2023-03-13T17:29:54.894Z","dependency_job_id":null,"html_url":"https://github.com/Aracki/ssa-clojure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aracki%2Fssa-clojure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aracki%2Fssa-clojure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aracki%2Fssa-clojure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aracki%2Fssa-clojure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aracki","download_url":"https://codeload.github.com/Aracki/ssa-clojure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240190909,"owners_count":19762591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","clojure","database","html-page"],"created_at":"2024-11-09T05:35:45.965Z","updated_at":"2026-05-03T11:33:53.183Z","avatar_url":"https://github.com/Aracki.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clojure customers and employees web app with Bootstrap\n\nSimple clojure web application for handling data from database. This web app is using basic CRUD operations (Create, Read, Update, Delete). It uses standard mysql jdbc connector for communicating with database which is hosted on localhost.\n\nOn the front-end, web app uses Bootstrap 3.3.5. and JQuery 3 libraries.\nAll public html files are .mustache extension, because the easy way of binding data between controller.clj and html pages providing simple Logic-less template.\n\nSending data from server for mustache template with Clostache library:\n\n\n```html\n(defn employees []\n  (render-template \"employees\" {:employees (employees-model/allEmployees)\n                                :offices (employees-model/allOffices)\n                                }))\n```\n\n\nIn this way you can use this variables in html pages with scriplets code :\n{{employees}} and {{offices}} and access to theirs attributes :\n\n```html\n{{#employees}}\n\u003ctr class=\"success\"\u003e\n    \u003cth\u003e{{employeenumber}}\u003c/th\u003e\n    \u003cth\u003e{{firstname}} {{lastname}}\u003c/th\u003e\n    \u003cth\u003e{{email}}\u003c/th\u003e\n    \u003cth\u003e{{officecode}}\u003c/th\u003e\n    \u003ctd\u003e\u003ca href=\"/model/employees/{{employeenumber}}/update\" class=\"btn btn-info\"\u003eEdit\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"/model/employees/{{employeenumber}}/remove\" class=\"btn btn-danger\"\u003eRemove\u003c/a\u003e\u003c/td\u003e\n\u003c/tr\u003e\n{{/employees}}\n```\n\nThe app uses Ring and Compojure library for abstracting HTTP requests and response into a simple API to manipulate with GET, POST, PUT requests.\n\n```html\n(POST \"/model/employees/insert\" [\u0026 params]\n  (do (employee-model/insertE params)\n    (resp/redirect \"/employees\")))\n(POST \"/model/employees/:employeeNumber/update\" [\u0026 params]\n(do (employee-model/update (:employeeNumber params) params)\n(resp/redirect \"/employees\")))\n```\n\n\nCustomers table :\n![Alt text](resources/public/img/customers.png?raw=true \"Customers table\")\n\nEmployees table :\n![Alt text](resources/public/img/employees.png?raw=true \"Employees table\")\n\nEdit employee example :\n![Alt text](resources/public/img/edit.png?raw=true \"Edit employee\")\n\nInsert employee example :\n![Alt text](resources/public/img/insert.png?raw=true \"Insert employee\")\n\nA Clojure project @FON 2015\n\n## Usage\n\nUse file classicmodels.sql in root folder and import it in mysql database.\n\nStart web application using 'lein ring server' command.\n\n## License\n\nCopyright © 2015 FIXME\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faracki%2Fssa-clojure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faracki%2Fssa-clojure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faracki%2Fssa-clojure/lists"}