Escriu per cercar…

Vite

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

Aquesta pàgina encara no s'ha traduït — es mostra en l'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 llegint una vista prèvia.

Inicia sessió per llegir l'article complet. Qualsevol compte obre 4 articles gratuïts al mes; l'alumnat i el professorat llegeixen les pàgines del seu curs sense límit.

Inicia sessió