{"id":16022174,"url":"https://github.com/karliatto/session-expressjs","last_synced_at":"2025-03-04T05:41:53.110Z","repository":{"id":129936786,"uuid":"65488945","full_name":"karliatto/session-expressjs","owner":"karliatto","description":"Simple website with session managment, login and sign up","archived":false,"fork":false,"pushed_at":"2019-10-24T13:12:56.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T09:57:02.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/karliatto.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-11T17:36:23.000Z","updated_at":"2019-10-24T13:12:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"5bba5d15-6644-4870-a3ea-25e0ea392417","html_url":"https://github.com/karliatto/session-expressjs","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/karliatto%2Fsession-expressjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karliatto%2Fsession-expressjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karliatto%2Fsession-expressjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karliatto%2Fsession-expressjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karliatto","download_url":"https://codeload.github.com/karliatto/session-expressjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241794110,"owners_count":20021188,"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-10-08T18:21:38.515Z","updated_at":"2025-03-04T05:41:53.089Z","avatar_url":"https://github.com/karliatto.png","language":"JavaScript","readme":"# session-expressjs\nSimple website with session managment, login and sign up\n\n* sign up\n* login\n* logout\n* using hash password\n\n\n## Requirements \n* [Nodejs](https://nodejs.org/en/)\n* [MySQL](https://www.mysql.com/) \n* [ExprssJS](https://www.expressjs.com/) \n* [knexJS](https://www.knexjs.org/) \n\n## Getting Started\n\nUsing phpMyAdmin (or some other MySQL admin tool):\n* Create a database named __session_expressjs__\n* Create a table in the database named __users__ with the following structure:\n```sql\nCREATE TABLE IF NOT EXISTS `users` (\n  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n  `username` varchar(11) NOT NULL,\n  `password` varchar(72) NOT NULL,\n  PRIMARY KEY (`id`)\n) ENGINE=InnoDB ;\n```\n* Add a user to the __session_expressjs__ database with the same name. Sample SQL statement to do this:\n```sql\nCREATE USER 'session_expressjs'@'localhost' IDENTIFIED BY  'password';\n\nGRANT USAGE ON * . * TO  'session_expressjs'@'localhost' IDENTIFIED BY  'password' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;\n\nGRANT ALL PRIVILEGES ON  `session_expressjs` . * TO  'session_expressjs'@'localhost';\n```\n* A table with session will be created automatically by 'express-session'\n\nClone this repository to your local environment by using the following command from a terminal window:\n```\ngit clone https://github.com/karliatto/session-expressjs.git\n```\n\nChange into the directory that was just created:\n```\ncd session-expressjs\n```\n\nInstall node modules:\n```\nnpm install\n```\n\nRun the web server:\n```\nnode index.js\n```\n\nOpen your browser and navigate to the following URL:\n[localhost:3000/registro](http://localhost:3000/registro)\n\n* Register with user and password\n* Login\n* To logout go to [localhost:3000/logout](http://localhost:3000/registro)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarliatto%2Fsession-expressjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarliatto%2Fsession-expressjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarliatto%2Fsession-expressjs/lists"}