{"id":21547862,"url":"https://github.com/karma4u101/basic-squerylrecord-user-setup","last_synced_at":"2025-04-10T05:53:02.433Z","repository":{"id":1920574,"uuid":"2848500","full_name":"karma4u101/Basic-SquerylRecord-User-Setup","owner":"karma4u101","description":"Scala Lift simple/fasttrack user registration/login example","archived":false,"fork":false,"pushed_at":"2015-03-23T20:14:49.000Z","size":1158,"stargazers_count":13,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T07:07:12.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karma4u101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-25T08:45:00.000Z","updated_at":"2017-09-08T08:22:27.000Z","dependencies_parsed_at":"2022-08-19T17:40:50.780Z","dependency_job_id":null,"html_url":"https://github.com/karma4u101/Basic-SquerylRecord-User-Setup","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/karma4u101%2FBasic-SquerylRecord-User-Setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma4u101%2FBasic-SquerylRecord-User-Setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma4u101%2FBasic-SquerylRecord-User-Setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma4u101%2FBasic-SquerylRecord-User-Setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karma4u101","download_url":"https://codeload.github.com/karma4u101/Basic-SquerylRecord-User-Setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166927,"owners_count":21058480,"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":[],"created_at":"2024-11-24T06:16:30.467Z","updated_at":"2025-04-10T05:53:02.410Z","avatar_url":"https://github.com/karma4u101.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"User Authentication Authorization Using SquerylRecord\n=====================================================\n\nThis Scala/Lift basic assembly example project demonstrates a very basic squeryl-record ORM/DSL User (authentication/authorization) setup \nwith register/login/user-pages snippets. The example also demonstrates some form data validation by the snippet before being posted to the \ndatabase as well as a visual interactive html5 form field validation. To make things easy to follow the examples has extensive logging. \n\nThis example is intended for those of you who need some compact and concise running and mostly ;) simple to follow example of a particular \nfeature or concept in Lift.\n\nAfter many years of Java EE development I started look at Scala/Lift in May 2011 so there may be some none \"best practice\" stuff in there \nand if you find something you think could be done in a more Scala/Lift fashion please let me know.\n\nImprovements and suggestions are welcome! \n\nbest regards \nPeter Petersson\n\n\nQuick Start\n-----------\nThe only prerequisites for running this Lift example is that you have Git and Java installed and configured on the target computer.\nYou don't need to use it but the project also includes a Eclipse plug-in for browsing and following/working with the code, see the Scala IDE section.   \n\n\n1) Get the examples\n\n\tgit clone git@github.com:karma4u101/Basic-SquerylRecord-User-Setup.git\n\tcd Basic-SquerylRecord-User-Setup\n\n2) Update \u0026 Run Jetty\n\nThere is also a sbt.bat for windows users.\n\n\t./sbt update ~container:start\n\n3) Launch Your Browser\n\t\n\thttp://localhost:8080/\n\t\n### Changing Database backend\n\nFor demonstration purpose and easy setup this example uses, by default, a in memory database with name \"test\".\nThe in memory database is embedded and accessible via a servlet from /console but you can out of the box change database \nto MySql or Postgres by un-comment the corresponding database init line in Boot.scala. Database name, user and password \nis set in the default.props resources file. With a few lines of code you can enable support for any Squeryl supported db. \t\n\nScala IDE for Eclipse\n---------------------\nSbteclipse provides SBT command to create Eclipse project files\n\n1) Usage\n\n\tproject$ ./sbt\n\t\u003e eclipse \n\n2) In eclipse do: \n\n\tFile ==\u003e Import...\n\tSelect General ==\u003e Existing Project into Workspace \n\tUse \"Brows\" to look up the project root ....\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarma4u101%2Fbasic-squerylrecord-user-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarma4u101%2Fbasic-squerylrecord-user-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarma4u101%2Fbasic-squerylrecord-user-setup/lists"}