{"id":19545820,"url":"https://github.com/konradmi/auth-nodejs-mysql","last_synced_at":"2026-04-09T21:04:39.165Z","repository":{"id":159676937,"uuid":"95484937","full_name":"konradmi/auth-nodejs-mysql","owner":"konradmi","description":"Boilerplate for server side authentication with node.js, passport and MySQL","archived":false,"fork":false,"pushed_at":"2017-06-27T20:07:55.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T19:40:41.603Z","etag":null,"topics":["authentication","express","jwt","mysql","nodejs","passportjs"],"latest_commit_sha":null,"homepage":"","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/konradmi.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":"2017-06-26T20:06:59.000Z","updated_at":"2020-07-19T19:57:14.000Z","dependencies_parsed_at":"2023-05-06T07:01:42.125Z","dependency_job_id":null,"html_url":"https://github.com/konradmi/auth-nodejs-mysql","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/konradmi%2Fauth-nodejs-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konradmi%2Fauth-nodejs-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konradmi%2Fauth-nodejs-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konradmi%2Fauth-nodejs-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konradmi","download_url":"https://codeload.github.com/konradmi/auth-nodejs-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240801040,"owners_count":19859727,"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":["authentication","express","jwt","mysql","nodejs","passportjs"],"created_at":"2024-11-11T03:41:27.948Z","updated_at":"2026-04-09T21:04:39.139Z","avatar_url":"https://github.com/konradmi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auth-nodejs-mysql README\n\n## Setup\n\n### Database\n\nTo save your time and frustration I've prepared a vagrantfile with a test database\n\nTo run the database locally:\n\nInstall `mysql`\n\nInstall `virtualbox`\n\nInstall `vagrant`\n\nInstall `vagrant-triggers`\n\nRun `vagrant up`\n\nA brand new instance of MySQL should be listening on port 3310\n\n### Api\n\nInstall `nvm`\n\nInstall node: `nvm install 6`\n\nInstall dependencies: `npm install`\n\nStart api: `npm run start:dev`\n\nApi listens on port 4000 by default, hit http://localhost:4000/health to see if it's live and kicking\n\n## API Endpoints:\n\n`POST /signup` - it accepts login and password. Once it's been verified that there's no user with the given login in the database, the login and hashed password is saved in the database and a JWT token is created and sent back to the user\n\n`POST /singin` - it accepts login and password. It checks if the login and password are ok and a JWT token is sent back to the user\n\n`GET /` - in order to access the route you have to include the JWT token in the `authorization` header in the request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonradmi%2Fauth-nodejs-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonradmi%2Fauth-nodejs-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonradmi%2Fauth-nodejs-mysql/lists"}