https://github.com/toxe/react-rest-jwt
A React REST API example using JWT Authentication
https://github.com/toxe/react-rest-jwt
api javascript jwt react rest
Last synced: about 1 month ago
JSON representation
A React REST API example using JWT Authentication
- Host: GitHub
- URL: https://github.com/toxe/react-rest-jwt
- Owner: Toxe
- License: mit
- Created: 2020-05-26T10:01:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T04:10:20.000Z (over 3 years ago)
- Last Synced: 2025-02-03T22:38:01.432Z (over 1 year ago)
- Topics: api, javascript, jwt, react, rest
- Language: JavaScript
- Homepage:
- Size: 839 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A React REST API example using JWT Authentication
## Dependencies
- Axios
- jsonwebtoken
- date-fns
## Running REST API Server (for development)
Add proxy settings to `package.json`:
```
{
"proxy": "http://localhost:5000",
[..]
}
```
Run server (https://github.com/Toxe/python-flask-rest-jwt):
```
flask run
```
## Running the application
```
npm start
```
### Building and running a production version
```
npm run build
serve -s build
```
## Tests
```
npm test
```