Skip to content

Abhiramborige/Flask-React-Google-Login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Client side: React:

Steps:

  1. create .env file
  REACT_APP_BACKEND_URL= http://localhost:5000
  1. 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
  1. Go to https://console.cloud.google.com/ and create client secrets and configuration file
  2. Save as client-secret.json
  3. 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