Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lamzaone/flask-pet-adoption-app
Flask web app with Google OAuth2.0 and SQLite3
https://github.com/lamzaone/flask-pet-adoption-app
crud crud-app crud-application flask flask-application flask-login flask-web google-api google-oauth2 oauth2 oauth2-login pagination sqlite3
Last synced: 21 days ago
JSON representation
Flask web app with Google OAuth2.0 and SQLite3
- Host: GitHub
- URL: https://github.com/lamzaone/flask-pet-adoption-app
- Owner: lamzaone
- License: gpl-3.0
- Created: 2024-01-13T07:49:04.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-21T13:08:25.000Z (12 months ago)
- Last Synced: 2024-11-01T23:42:22.111Z (2 months ago)
- Topics: crud, crud-app, crud-application, flask, flask-application, flask-login, flask-web, google-api, google-oauth2, oauth2, oauth2-login, pagination, sqlite3
- Language: HTML
- Homepage:
- Size: 4.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask app for pet adoptions with google oauth2.0 login
Flask, Flask-Login, Login with Google, App setup as Google Client1. Installation with Pipenv:
```
pipenv install
```- Installation without Pipenv:
```
pip install -r requirements.txt
```2. Generate a SSL certificate (on windows you can use GitBash)
```bash
openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365
```
- Or, instead you could replace the last line of app.py with
```python3
app.run(ssl_context="adhoc", host='127.0.0.1', port='5000')
```3. Generate Google OAuth2.0 API credentials on Google Console and store them into your system environments variables
4. Initalize the database by running app.py for the first time:
```
python app.py
```Should see "Initialized the database."
5. Run the command again to start the Flask web server locally:
```
python app.py
```if the command above gives errors, try using python3 instead of python.