Type to search…

Vite

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

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/

You're reading a preview.

Sign in to read the full article. Any account opens 4 free articles a month; students and teachers read their course pages without limit.

Sign in