https://github.com/abhiramborige/flask-react-google-login
Google Login using React, Flask, Google OAuth, JWT
https://github.com/abhiramborige/flask-react-google-login
flask-application google-signin jwt-authentication jwt-token oauth2 react reactjs
Last synced: about 1 year ago
JSON representation
Google Login using React, Flask, Google OAuth, JWT
- Host: GitHub
- URL: https://github.com/abhiramborige/flask-react-google-login
- Owner: Abhiramborige
- Created: 2021-11-18T14:50:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T13:30:36.000Z (over 4 years ago)
- Last Synced: 2025-03-27T22:51:09.319Z (over 1 year ago)
- Topics: flask-application, google-signin, jwt-authentication, jwt-token, oauth2, react, reactjs
- Language: Python
- Homepage:
- Size: 13 MB
- Stars: 36
- Watchers: 1
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Client side: React:
### Steps:
1. create .env file
```
REACT_APP_BACKEND_URL= http://localhost:5000
```
2. Use the commands to start the app locally.
```
cd google-login-react
npm install
npm start
```
## Server side: Flask:
### Steps:
1. create .env file
```
DB_NAME=
CLUSTER_URL=
GOOGLE_CLIENT_ID=
SECRET_KEY=
ALGORITHM=
PROJECT_ID=
BACKEND_URL=http://127.0.0.1:5000
FRONTEND_URL=http://localhost:3000
```
2. Go to https://console.cloud.google.com/ and create client secrets and configuration file
3. Save as client-secret.json
4. Use the commands to start the server locally.
```
cd flask-server-google
pip install virtualenv
virtualenv google_env
cd google_env/Scripts
activate
cd ..
cd ..
pip install -r requirements.txt
python app.py
```