This document explains how to use the provided scripts to start this project on different operating systems.
- Ensure you have Node.js installed (LTS version recommended). The script will check automatically, but pre-installing can prevent interruptions.
- Double-click the
start-project-en.batfile located in the project's root directory. - The script will automatically check for the required
node,npm, andpnpm.- If
nodeornpmis not installed, the script will prompt you to install them, and you will need to re-run the script afterwards. - If
pnpmis not installed, the script will ask if you want to install it globally vianpm. EnterYand press Enter to proceed with the installation.
- If
- Once the installation checks pass, the script will automatically execute
pnpm installto install project dependencies. - Then, it will execute
pnpm devto start the development server. - The terminal will display the development server's address (usually
http://localhost:xxxx). - How to stop the server: In the command prompt window where the script is running, press
CTRL+C, then confirm if prompted, to stop the development server.
- Ensure you have Node.js installed (LTS version recommended). You can download it from the official website or use Homebrew (
brew install node). - Open your Terminal.
- Navigate to the project's root directory. For example, if your project is in
~/Projects/swot, typecd ~/Projects/swot. - Before running the script for the first time, you need to give it execution permissions. Run the following command in the terminal:
chmod +x start-project-macos-en.sh
- Now, you can run the script:
./start-project-macos-en.sh
- The script will automatically check for the required
node,npm, andpnpm.- If
nodeornpmis not installed, the script will prompt you to install them. You will then need to close the current terminal, open a new one, and re-run the script. - If
pnpmis not installed, the script will ask if you want to install it globally vianpm. Enteryand press Enter to proceed.
- If
- Once the installation checks pass, the script will automatically execute
pnpm install. - Then, it will execute
pnpm devto start the development server. - The terminal will display the development server's address (usually
http://localhost:xxxx). - How to stop the server: In the terminal window where the script is running, press
CTRL+Cto stop the development server.
- Ensure you have Node.js installed (LTS version recommended). You can download it from the official website or use your distribution's package manager (e.g.,
apt,dnf,pacman). - Open your terminal.
- Navigate to the project's root directory.
- Before running the script for the first time, you need to give it execution permissions. Run the following command in the terminal:
chmod +x start-project-linux-en.sh
- Now, you can run the script:
./start-project-linux-en.sh
- The script will automatically check for the required
node,npm, andpnpm.- If
nodeornpmis not installed, the script will prompt you to install them. You will then need to close the current terminal, open a new one, and re-run the script. - If
pnpmis not installed, the script will ask if you want to install it globally vianpm. Enteryand press Enter to proceed.
- If
- Once the installation checks pass, the script will automatically execute
pnpm install. - Then, it will execute
pnpm devto start the development server. - The terminal will display the development server's address (usually
http://localhost:xxxx). - How to stop the server: In the terminal window where the script is running, press
CTRL+Cto stop the development server.
- If, after installing
pnpm, the script fails to find thepnpmcommand in the same session, try closing the current terminal/command prompt window, opening a new one, and then re-running the startup script. This is often because the path to the newly installed command has not yet been recognized in the current session. - All interactive prompts in these scripts are in English.
- If you encounter any issues, check the error messages output in the terminal; they usually provide clues for resolving the problem.
- Running the project using the scripts described above will start the development version. The development version typically includes features like hot-reloading and detailed error outputs, which are helpful for development but not suitable for a production deployment.
- If you intend to build the project (e.g., to generate optimized files for a production environment), this usually involves different commands and configurations (e.g.,
pnpm build). Please familiarize yourself with the project's build process and related concepts before proceeding.