Escribe para buscar…

Vite

Integration of a Python server and a Typescript client using Vite and a development proxy.

Esta página todavía no se ha traducido — se muestra en su idioma original:English

Introduction

We will create a web application in which:

  • The server is written with FastAPI
  • The client is written in React

The client and server communicate using JSON.

Working environment

Clone the project:

shell
$ git clone https://gitlab.com/xtec/python/vite

Server

The backend server is developed completely independently of the frontend.

Start the Python server through the Deno task:

shell
$ deno task server

The server exposes an HTTP endpoint at:

Note

All API endpoints must start with /api/

Estás leyendo una vista previa.

Inicia sesión para leer el artículo completo. Cualquier cuenta abre 4 artículos gratuitos al mes; el alumnado y el profesorado leen las páginas de su curso sin límite.

Iniciar sesión