Webapp template that made with Nuxt and FastAPI backend. Out of box, battery included.
fromfastapiimportFastAPIapp=FastAPI()
@app.route('/hello')defhello(name: str='World'):
return {'greet': f'Hello, {name}!'}<template>
<div>{{ greet }}</div>
</template>
<script>exportdefault {asyncData({$api, route: {fullPath}}) {return$api(fullPath) }}</script>- Python 3.x (with virtualenv)