To build and run the site locally, follow these steps:
-
Install Dependencies: Ensure you have Node.js and npm installed. Then, run the following command to install the project dependencies:
npm install
-
Build the Project: To create a production build of the site, use the following command:
npm run build
-
Run the Development Server: To start the development server and view the site locally, use:
npm run dev
This will start the server, and you can view the site by navigating to
http://localhost:3000
in your web browser. -
Run the Production Server: After building the project, you can run the production server with:
npm run serve
This will serve the built files, allowing you to test the production version of the site.