Git Product home page Git Product logo

tutorial-code's Introduction

Tutorial Code

Code connected to YT videos:

Flask:

Express

Discord:

Redux

Websockets

Note: **The code in this repo is an updated and improved version of the ones from the videos. (Since the videos are unscripted and relatively short there isn't enought time to explain everything and make the code pretty~ish) **

Note: If you do find issues or ways to improve the code feel free to open an issue

If you found the videos or the code helpful give it a star too

tutorial-code's People

Contributors

abhibansal60 avatar dependabot[bot] avatar vuka951 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tutorial-code's Issues

flask-google-oauth2 issue

There may have been a change since your code was added. I tried your flask-google-oauth2 tutorial code.

I was getting this error:
RuntimeError: Missing "jwks_uri" in metadata

I added this line to the oauth.register:
server_metadata_url='https://accounts.google.com/.well-known/openid-configuration'

Then this error occurred:
authlib.jose.errors.InvalidClaimError: invalid_claim: Invalid claim "iss"

I had to remove openid from client_kwargs to get it to work.

Did I miss anything?

Restric access to specific domain

I tried with hosted_domain and hd in the oauth.register but still able to access different domains.

Can you hep me on this with priority, please
Language: python3.x

Websocket

hello dear
I want you make for me a websocket file for mibbit chat client

Flask google Oauth2.0 , KeyError: 'profile'

Hey man,
Thanks a lot for your repo,

I have your app.py, yet when I ran the script, I got:

line 40, in hello_world email = dict(session)['profile']['email'] KeyError: 'profile'

As well as,:

google = oauth.register(
    name='google',

should name be our client project or always google?

user.displayName is undefined

Hi Vuka ,
Thank you for your great tutorials and the good explanation .

when I tried to do the same as the code in the tutorial , it shows me an error in user.displayName that is undefined
and when I tried to log the user it also show undefined .

can you please help me understand the error

ModuleNotFoundError: No module named 'auth_decorator'

requirements.txt has been installed to the env/ , however when I am running the code, I am receiving below error:

(env37) $ flask run
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
Usage: flask run [OPTIONS]

Error: While importing "app", an ImportError was raised:

Traceback (most recent call last):
  File "/Users/hnoaman/PycharmProjects/react_projects/prototype-search/backend/env37/lib/python3.7/site-packages/flask/cli.py", line 240, in locate_app
    __import__(module_name)
  File "/Users/hnoaman/PycharmProjects/react_projects/prototype-search/backend/app.py", line 8, in <module>
    from auth_decorator import login_required
ModuleNotFoundError: No module named 'auth_decorator'

Python version:

(env37) $ python
Python 3.7.5 (default, Nov  1 2019, 02:16:32) 
[Clang 11.0.0 (clang-1100.0.33.8)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Installed libs:

(env37) $ pip freeze
Authlib==0.14.1
certifi==2020.4.5.1
cffi==1.14.0
chardet==3.0.4
click==7.1.1
cryptography==2.9
entrypoints==0.3
fastapi==0.59.0
flake8==3.7.9
Flask==1.1.2
h11==0.9.0
httptools==0.1.1
idna==2.9
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
mccabe==0.6.1
pycodestyle==2.5.0
pycparser==2.20
pydantic==1.6.1
pyflakes==2.1.1
python-dotenv==0.12.0
requests==2.23.0
six==1.14.0
starlette==0.13.4
urllib3==1.25.8
uvicorn==0.11.5
uvloop==0.14.0
websockets==8.1
Werkzeug==1.0.1
(env37) $ 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.