Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jtemporal/minimal-fastapi-webapp-auth0

Minimal web app with fastapi and auth0
https://github.com/jtemporal/minimal-fastapi-webapp-auth0

auth0 fastapi

Last synced: 9 days ago
JSON representation

Minimal web app with fastapi and auth0

Awesome Lists containing this project

README

        

# FastAPI Demo Web App with Auth0

This application is a sample on how to integrate Auth0 for authentication in a FastAPI web application using APIRouter and module separation.

## How to run the server

1. Clone this repository
```
git clone https://github.com/jtemporal/minimal-fastapi-webapp-auth0.git && cd minimal-fastapi-webapp-auth0
```
2. Create a `.config` file from `.config.example` and populate the values from your Auth0 Application. Here is
```
cp .config.example .config
```

3. Create a virtual environment and install dependencies

```
# Create a venv
python3 -m venv .env

# Activate
source .env/bin/activate

# Install dependencies
pip install -r requirements.txt
```

4. Start the server

```
uvicorn main:app --reload
```

5. Visit [`http://localhost:8000`](http://localhost:8000) to access the web application.

----

Rewatch this live stream on FastAPI authentication with Auth0 and Jinja templates!

- On [twitch](https://www.twitch.tv/videos/1990681238)
- On [YouTube](https://www.youtube.com/watch?v=BMLaMdob3Cs)

Where to find us:
* Jess' LinkedIn: http://linkedin.com/in/jessicatemporal/
* Juan's LinkedIn: https://www.linkedin.com/in/bajcmartinez/

Sign up for Auth0's developer newsletter here: https://a0.to/nl-signup/python