blob: 45317d69d22d07c7708fcb677ef86223861a6a19 [file] [view]
# Bootstrapping asfquart
## Constructing the base quart app
```python
import asfquart
def main():
app = asfquart.construct("name_of_app")
return app
if __name__ == "__main__":
app = main()
# run a development server on port 8080
app.runx(port=8080)
```
Other modules in the app will use:
```python
import asfquart
APP = asfquart.APP
@APP.some_decorator
async def some_endpoint():
return do_something()
```
## See also (WIP):
- [Setting up OAuth](oauth.md)
- [Session handling](sessions.md)
- [Authentication, Authorization, and Access](auth.md)
- [Simplified EZT templating](templates.md)