This is a template project using Express.js and Vite.
- Serves static files from the
dist
directory. - Configurable via environment variables.
- Includes a basic Express.js server.
-
Clone the repository:
git clone <repository-url> cd template
-
Install dependencies:
pnpm install
-
Create a
.env
file in the root directory and configure the following variables:PORT=3000
To start the development server:
pnpm dev
To build the project for production:
pnpm build
To start the production server:
pnpm start
Ensure the dist
directory is built before starting the server.
This project is licensed under the MIT License.