- Add .env.example with required environment variables - Add helpful warning message when google_client_id/secret are missing - Update steps_to_run.md with detailed setup instructions - Include instructions for creating Google OAuth credentials Addresses #9
1.3 KiB
1.3 KiB
Server
-
To run server, install virtualenv first https://virtualenv.pypa.io/en/latest/ and create a new virtual environment to load all necessary python packages
-
Go to server folder and install all necessary packages using command
pip install -r requirements.txt -
Set up environment variables:
- Copy
.env.exampleto.env:cp .env.example .env - Edit
.envand add your credentials:FLASK_ENV=devFLASK_APP=webserver.pygoogle_client_id- Get from Google Cloud Consolegoogle_client_secret- Get from Google Cloud Console
To create Google OAuth credentials:
- Go to Google Cloud Console > APIs & Services > Credentials
- Click "Create Credentials" > "OAuth client ID"
- Select "Web application"
- Add authorized redirect URIs:
http://localhost:5000/rp/google_callback(for development)
- Copy the Client ID and Client Secret to your
.envfile
- Copy
-
Create a db for storing all the info using commands:
flask db init flask db migrate flask db upgrade -
Run the server using
python webserver.py
Client
-
To run client, go to client folder and do
npm install -
Now run
npm startand this should start the client