{"id":19738123,"url":"https://github.com/linuxuser255/jwt_reactapp","last_synced_at":"2025-06-10T14:05:11.583Z","repository":{"id":177073659,"uuid":"659903697","full_name":"LinuxUser255/JWT_ReactApp","owner":"LinuxUser255","description":"A basic web app that demonstrates the creation and use of Java Web Tokens written in Node.JS and React","archived":false,"fork":false,"pushed_at":"2023-06-28T21:13:17.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T05:56:23.909Z","etag":null,"topics":[],"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/LinuxUser255.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":"2023-06-28T20:22:34.000Z","updated_at":"2023-06-28T21:15:36.000Z","dependencies_parsed_at":"2023-07-10T06:15:31.016Z","dependency_job_id":null,"html_url":"https://github.com/LinuxUser255/JWT_ReactApp","commit_stats":null,"previous_names":["linuxuser255/jwt_reactapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxUser255%2FJWT_ReactApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxUser255%2FJWT_ReactApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxUser255%2FJWT_ReactApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxUser255%2FJWT_ReactApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinuxUser255","download_url":"https://codeload.github.com/LinuxUser255/JWT_ReactApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxUser255%2FJWT_ReactApp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259088504,"owners_count":22803649,"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-12T01:13:18.903Z","updated_at":"2025-06-10T14:05:11.555Z","avatar_url":"https://github.com/LinuxUser255.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Login page: NodeJS React \u0026 JWTs \n\n### Built With\n* ![](https://github.com/LinuxUser255/JWT_ReactApp/blob/main/REACT_JS_README_Logo.svg)https://react.dev\n* ![](https://github.com/LinuxUser255/JWT_ReactApp/blob/main/NodeJSLogo.svg)https://nodejs.org/en\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Overview\n* Set up authentication so that only a request with a JWT can access the dashboard\n* After a user signs up they log in and are given a signed JWT\n* Only registered users should be able to obtain a JWT\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## How the app works\nWhen logging in, the app looks for the username and password.\nIf both the username and password exist, then it will create a new signed JWT. Otherwise, an error is returned.\nUpon successful creation of the JWT, the user will be notified.\n\n**The main endpoints, and correct URL with correct paths are:**\n```\n http://localhost:3000/api/v1/dashboard\n http://localhost:3000/api/v1/login\n```\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\n1. Check that the package versions in **package.json** are the most recent\n2. Edit the package.json file accordingly before running the npm install command\n3. Once all that is done, run the following commands\n\n* Install the packages and Express for API development\n ```sh\n  npm install --save express \n```\n\n* Install nodemon it's a development package. It auto runs the server. \n```shell\nnpm install --save-dev nodemon\n```\n* Edit `package.json` to make running the server easier. Add this to the `package.json` file\n```shell\n\"start\": \"nodemon.js\"\n```\n*  Install a parser to parse incoming request bodies\n```shell\n npm install --save body-parser\n```\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\nRun the commands listed above in the console of your IDE, (I used Jet Brains WebStorm). Then open a browser and navigate to http://localhost:3000\n\n_For more information, please refer to the [WebStorm Documentation](https://www.jetbrains.com/help/webstorm/meet-webstorm.html)_\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxuser255%2Fjwt_reactapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxuser255%2Fjwt_reactapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxuser255%2Fjwt_reactapp/lists"}