My portfolio website, built using SvelteKit, offers exceptional performance. Visit at https://daishodesign.com.
To review the project overview, please visit the project board at: https://github.com/users/kdaisho/projects/2/views/1
To get started with development, follow these steps:
- Clone the project repository.
- Install dependencies using
npm install
(orpnpm install
oryarn
). - Start a development server:
npm run dev
To create a production version of your app, run the following command:
npm run build
You can preview the production build using npm run preview
.
Ensure that you include the ORIGIN environment variable; otherwise, the SvelteKit frontend won't be able to communicate with its backend. You can add it to an npm script as shown below:
"prod": "ORIGIN=https://daishodesign.com PORT=8890 node build",
In the above script, PORT=8890 specifies the port of the backend server.
Note: To deploy your app, you may need to install an adapter suitable for your target environment.
If you bypass GitHub actions and start the application server manually, follow these steps:
- Log in to the server.
- Navigate to the location of the project files (e.g., ./actions-runner-portfolio-v5/...).
- Start PM2:
pm2 start npm --name portfolio_v5 -- run prod --watch