{"id":23213094,"url":"https://github.com/njorogemaurice/node-react-jwt","last_synced_at":"2026-04-11T03:34:57.981Z","repository":{"id":226162230,"uuid":"763981886","full_name":"NjorogeMaurice/Node-React-JWT","owner":"NjorogeMaurice","description":"This is a project to create a JWT authentication using Node js(backend) and React js(frontend).","archived":false,"fork":false,"pushed_at":"2024-03-06T07:07:13.000Z","size":227,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T12:44:11.023Z","etag":null,"topics":["jwt","nodejs","reactjs"],"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/NjorogeMaurice.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}},"created_at":"2024-02-27T09:11:33.000Z","updated_at":"2024-05-21T07:44:38.000Z","dependencies_parsed_at":"2024-03-06T07:54:03.750Z","dependency_job_id":null,"html_url":"https://github.com/NjorogeMaurice/Node-React-JWT","commit_stats":null,"previous_names":["njorogemaurice/node-jwt-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NjorogeMaurice/Node-React-JWT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NjorogeMaurice%2FNode-React-JWT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NjorogeMaurice%2FNode-React-JWT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NjorogeMaurice%2FNode-React-JWT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NjorogeMaurice%2FNode-React-JWT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NjorogeMaurice","download_url":"https://codeload.github.com/NjorogeMaurice/Node-React-JWT/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NjorogeMaurice%2FNode-React-JWT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31668049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["jwt","nodejs","reactjs"],"created_at":"2024-12-18T19:14:25.724Z","updated_at":"2026-04-11T03:34:57.926Z","avatar_url":"https://github.com/NjorogeMaurice.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node-React-JWT\n\nThis is a project to create a JWT authentication using Node js(backend) and React js(frontend).\n## Table of Contents\n\n- [Prerequisite](#prerequisite)\n- [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n\n\n## Prerequisite\n\nTo run Node-React-JWT you need to have node installed on your computer. To install node follow the instructions [here](https://nodejs.org/en/download/).\n\n## Installation\n\nTo get started with the Node-React-JWT project, follow these installation steps:\n\n1. Go to the directory where you want to create your project and clone the repo:\n    \n```bash\ngit clone https://github.com/NjorogeMaurice/Node-React-JWT.git\n```\n\n2. Change into the project directory:\n\n```bash\ncd Node-React-JWT\n```\n\n\n3. Install all the dependencies for Nodejs (backend) using npm:\n\n```bash\nnpm install\n```\n\n\n4. Change into the frontend directory:\n\n```bash\ncd frontend\n```\n\n5. Install all the dependencies for Reactjs (frontend) using npm:\n\n```bash\nnpm install\n```\n\n## Usage\n5. Create a .env file in the root directory of your project. Add the following to it:\n\n```bash\nPORT = 5000\nJWT_SECRET_KEY = 'your secret key'(use comand \"openssl rand -hex 32 or 64\" to generate the random key)\nTOKEN_HEADER_KEY =  'your secret key'(use comand \"openssl rand -hex 32 or 64\" to generate the random key)\nSQL_DB_NAME=''\nSQL_USER_NAME=''\nSQL_USER_PASSWORD=''\nSQL_DB_HOST=''\nSQL_DB_DIALECT='mysql'\n```\n\n\n5. After that you can run the backend on your local machine:\n\n```bash\nnode main.js\n```\n\n## Running Reactjs(Frontend)\n\nChange to the frontend directory\n\n```bash\ncd frontend\n```\n\nThen run the following command:\n```\nnpm start\n```\n\nHappy Coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjorogemaurice%2Fnode-react-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjorogemaurice%2Fnode-react-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjorogemaurice%2Fnode-react-jwt/lists"}