Skip to content

Vite and Node.js: Running a Local Server

Bryan M Lecza edited this page Dec 6, 2023 · 14 revisions

Introduction

In order to build our frontend, we needed to see what our website looked like as we constructed it. In order to do this, we needed to run a local server which could host our website and show live edits. The tools we used for this were Node.js and Vite.

Node.js

Vite

Vite is a development tool that comes with a local development server for building applications.

Why Vite?

Faster Start Up

When creating your own server, dependencies can often cause slow start up times, however Vite pre-bundles dependencies causing speeds to increase by a factor of ten to a hundred.

Faster Updates

Bryan Lecza