Welcome to the project setup guide! This document will walk you through the steps required to configure your environment using the install.sh
script.
This project utilizes the following technologies as defined in the package.json
:
- Vue.js: A progressive JavaScript framework used for building user interfaces. (v3)
- Nuxt.js: A framework built on top of Vue.js that enables server-side rendering, static site generation, and more. (v3)
- Node.js: A cross-platform runtime environment for executing JavaScript code. (v20.11.0)
- uWebsockets.js: µWebSockets.js is a standards compliant web server written in 10,000 lines of C++. (v20.49.0)
- Pinia: A state management library for Vue.js, serving as the successor to Vuex.
- Axios: A promise-based HTTP client for making requests to the backend.
- Less: A CSS preprocessor that extends CSS with dynamic behavior such as variables, mixins, and functions.
These dependencies ensure that the project is structured with modern front-end practices, enabling a seamless development experience.
Before running the install.sh
script, please ensure that you have the following installed on your machine:
- mkcert: A simple tool to make locally trusted development certificates.
- nss: Network Security Services, required by
mkcert
on macOS.
You can install these prerequisites using Homebrew:
brew install mkcert nss
The install.sh
script will guide you through setting up your project, generating SSL certificates, and optionally cleaning up template files.
-
Navigate to the Project Root Directory:
Open your terminal and navigate to the root directory of your project where the
install.sh
script is located:cd path/to/your/project
-
Make the Script Executable:
If the script is not already executable, you can make it executable by running:
chmod +x install.sh
-
Run the Script:
Run the script by entering:
./install.sh
-
Provide the Required Information:
The script will prompt you for the following information:
- Domain Name: Enter the domain name you want to use (e.g.,
mysite.com
). - Project Name: Enter the project name. This name will be sanitized to replace any non-alphabetic characters with dashes and reduce multiple dashes to a single dash.
- Domain Name: Enter the domain name you want to use (e.g.,
-
Remove Template Files (Optional):
After generating the necessary configuration files, the script will ask if you want to remove the original template files. You can choose "yes" or "no" depending on your preference.
-
Install SSL Certificates:
The script will automatically generate and install local SSL certificates for your domain using
mkcert
. These certificates will be used to serve your project over HTTPS. -
Build the Project:
Once the setup is complete, you can build your project by running:
make build
-
Access Your Project:
After the build process, you can access your project by navigating to your domain in a web browser.
If you encounter any issues while running the script, consider the following:
- Bash Version: Ensure you are running the script in a Bash shell version 4.0 or later, or use the included script that is compatible with Bash 3.2.
- File Paths: Double-check that all template files are in the correct directories as expected by the script.
- Permissions: Make sure the
install.sh
script has execute permissions (chmod +x install.sh
).
For more details about the project setup or troubleshooting, please refer to the project documentation or contact the development team.
Thank you for using this setup guide! We hope it helps you get up and running quickly.