A starter template for building and deploying a Vite + React + Express application on Vercel. This project demonstrates how to set up a full-stack JavaScript application with a modern frontend and backend.
proxy ensures that any requests to /api will be forwarded to this address, which is where the Express server is running. Of course, you can decide your own port and improve the config to align with it.
The main package.json file (located at the root of the project) contains several custom scripts that manage both the client and server parts of the application. Let's break them down:
These custom scripts work together to provide a smooth development experience and build process for both the client and server parts of the application. The main package.json scripts orchestrate the overall build and development process, while the server package.json scripts handle server-specific tasks.
This should be the basics you need to get up and running. Hopefully the hours I spent circling this can help you save some time.