{"id":23553055,"url":"https://github.com/rhildred/framework7groceryscaffold","last_synced_at":"2025-11-01T13:30:30.279Z","repository":{"id":41909432,"uuid":"195996431","full_name":"rhildred/framework7GroceryScaffold","owner":"rhildred","description":"scaffold for midterm summer 2019","archived":false,"fork":false,"pushed_at":"2022-04-23T00:35:56.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-26T11:14:29.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/rhildred.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":"2019-07-09T11:36:55.000Z","updated_at":"2020-07-24T12:47:34.000Z","dependencies_parsed_at":"2022-08-11T21:00:31.885Z","dependency_job_id":null,"html_url":"https://github.com/rhildred/framework7GroceryScaffold","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/rhildred%2Fframework7GroceryScaffold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhildred%2Fframework7GroceryScaffold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhildred%2Fframework7GroceryScaffold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhildred%2Fframework7GroceryScaffold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhildred","download_url":"https://codeload.github.com/rhildred/framework7GroceryScaffold/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239293947,"owners_count":19615041,"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-12-26T11:13:55.871Z","updated_at":"2025-11-01T13:30:30.222Z","avatar_url":"https://github.com/rhildred.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [loginDemo](https://github.com/rhildred/loginDemo)\n\n## firebase framework7 v4 login demo for a CAPSTONE team.\n\nThis is a demo of a Framework7 login using Firebase to login and create a profile. To run in your local environment.\n\n```\n\nnpx http-server\n\n```\n\nThe index.html contains 2 login-screen classes to match the 2 buttons.\n\n```\n\n\u003cdiv class=\"login-screen signupYes\"\u003e\n    \u003cdiv class=\"view\"\u003e\n        \u003cdiv class=\"page\"\u003e\n            \u003cdiv class=\"page-content login-screen-content\"\u003e\n\n\n```\n\nbutton:\n\n```\n\n\u003ca href=\"#\" class=\"button login-screen-open\" data-login-screen=\".signupYes\"\u003eSign Up\u003c/a\u003e\n\n```\n\nand\n\n```\n\n\u003cdiv class=\"login-screen loginYes\"\u003e\n    \u003cdiv class=\"view\"\u003e\n        \u003cdiv class=\"page\"\u003e\n            \u003cdiv class=\"page-content login-screen-content\"\u003e\n\n\n```\n\nto go with the button:\n\n```\n\n\u003ca href=\"#\" class=\"button button-active login-screen-open\" data-login-screen=\".loginYes\"\u003eSign In\u003c/a\u003e\n\n\n```\n\nUsing Dom7 we capture the click event on the sign in button:\n\n```\n\n$$(\"#signUpButton\").on(\"click\", () =\u003e {\n    var formData = app.form.convertToData('#signUpForm');\n    //alert(\"clicked Sign Up: \" + JSON.stringify(formData));\n    firebase.auth().createUserWithEmailAndPassword(formData.username, formData.password).then(\n        () =\u003e {\n            // could save extra info in a profile here I think.\n            app.loginScreen.close(\".signupYes\", true);\n        }\n    ).catch((error) =\u003e {\n        // Handle Errors here.\n        var errorCode = error.code;\n        var errorMessage = error.message;\n        $$(\"#signUpError\").html(errorCode + \" error \" + errorMessage)\n        console.log(errorCode + \" error \" + errorMessage);\n        // ...\n    });\n\n});\n\n\n```\n\nThere is also a database.rules.json file that you can plug in to your firebase console. In your firebase console you will also need to set up the email and password provider.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhildred%2Fframework7groceryscaffold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhildred%2Fframework7groceryscaffold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhildred%2Fframework7groceryscaffold/lists"}