{"id":16239173,"url":"https://github.com/xtrinch/jwt-express-react-example","last_synced_at":"2025-07-11T16:10:24.982Z","repository":{"id":39546810,"uuid":"185202949","full_name":"xtrinch/jwt-express-react-example","owner":"xtrinch","description":"Example \"popularity\" app developed with React \u0026 Express \u0026 Passport \u0026 Node","archived":false,"fork":false,"pushed_at":"2023-03-02T23:22:29.000Z","size":2570,"stargazers_count":21,"open_issues_count":38,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T19:52:45.162Z","etag":null,"topics":["express","jwt","react","redux"],"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/xtrinch.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":"2019-05-06T13:31:40.000Z","updated_at":"2023-11-24T11:41:14.000Z","dependencies_parsed_at":"2024-10-27T21:23:01.677Z","dependency_job_id":"05765dba-eb6b-4c53-8112-99007764465c","html_url":"https://github.com/xtrinch/jwt-express-react-example","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/xtrinch%2Fjwt-express-react-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrinch%2Fjwt-express-react-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrinch%2Fjwt-express-react-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrinch%2Fjwt-express-react-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtrinch","download_url":"https://codeload.github.com/xtrinch/jwt-express-react-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244006258,"owners_count":20382441,"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":["express","jwt","react","redux"],"created_at":"2024-10-10T13:42:34.449Z","updated_at":"2025-03-19T16:31:18.134Z","avatar_url":"https://github.com/xtrinch.png","language":"JavaScript","readme":"# jwt-express-react-example\n\nA two part example application with a frontend and backend.\n\nTry it out at: http://jwt-express-react-example.trina.si/\n\n\n## Functionality\n\n- Sign up\n- Log in\n- [Logged in] Log out\n- [Logged in] Change password\n- List of all users in the application (sorted by most-liked first)\n- Show all users that are currently in the system\n- Show number of likes\n- [logged in] Like/unlike a user\n- jwt token authentication with passport\n- At least one test for all endpoints\n\n## Tools used\n\n- [Node.js](https://nodejs.org/en/) v8 (async/await functionality)\n- [mongodb](https://www.mongodb.com/), [mongoose](https://mongoosejs.com/)\n- [Express.js](https://expressjs.com/)\n- [Passport.js](http://www.passportjs.org/) for authentication\n- [ReactJS](https://reactjs.org/)\n- [Redux](https://redux.js.org/) for state management\n- [Mocha](https://mochajs.org/) for testing\n\n## REST endpoints\nFeatures the following REST endpoints:\n\n- /signup\n\n    Sign up to the system (username, password)\n    \n- /login\n\n    Logs in an existing user with a password\n    \n- **/me**\n\n    Get the currently logged in user information\n    \n- **/me/update-password**\n\n    Update the current user's password\n    \n- /user/:username/\n\n    List username \u0026 number of likes of a user\n\n- **/user/:username/like**\n\n    Like a user\n\n- **/user/:username/unlike**\n\n    Unlike a user\n\n- /most-liked\n\n    List users in a most liked to least liked\n\nEach user can like another only once, and they can unlike each other.\nThe bolded endpoints are authenticated calls.\n\n## Usage\n\n### Development\n- Run `npm start` in `frontend/`, server will run at `http://localhost:3000`\n- Run `npm start` in `backend/`, server will run at `http://localhost:8000`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtrinch%2Fjwt-express-react-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtrinch%2Fjwt-express-react-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtrinch%2Fjwt-express-react-example/lists"}