This is a single-page website developed using Vue 3, TailwindCSS, and Vite. The project is set up for deployment to GitHub Pages.
- Requirements
- Getting Started
- Running the Project Locally
- Building the Project
- Deploying to GitHub Pages
Before running or deploying the project, make sure you have the following installed:
-
Clone the repository:
git clone https://github.com/gosimfoundation/GOSIM.org.git
-
Navigate to the project directory:
cd GOSIM.org -
Install dependencies:
npm install
To run the project in development mode, use the following command:
npm run dev- Open your browser and go to the URL provided by Vite (usually
http://localhost:5173).
To create a production-ready build of the project:
npm run build- The built files will be located in the
distdirectory.
The project is configured to deploy to GitHub Pages using the gh-pages package.
-
First-Time Deployment Setup: Ensure that the
gh-pagesbranch exists on your repository. If it doesn’t, you can create it manually. -
Run the deployment script:
npm run deploy
This will:
- Build the project.
- Deploy the
distfolder to thegh-pagesbranch of your repository.
-
Access the Deployed Website: After deployment, the website will be available at:
https://gosimfoundation.github.io/GOSIM.org/
-
GitHub Pages 404 Error:
- Ensure that the
baseproperty invite.config.jsis correctly set to the repository name:export default defineConfig({ base: '/GOSIM.org/', });
- Ensure that the
-
Missing
gh-pagesBranch:- If the
gh-pagesbranch is missing, try running:git checkout --orphan gh-pages git reset --hard git push origin gh-pages
- If the
GOSIM.org/
├── public/ # Static assets served directly
├── src/ # Source code
│ ├── assets/ # Images, styles, fonts, etc.
│ ├── components/ # Vue components
│ ├── App.vue # Root component
│ ├── main.js # Entry point
├── dist/ # Built files (generated after `npm run build`)
├── package.json # Project metadata and dependencies
├── tailwind.config.js # TailwindCSS configuration
└── vite.config.js # Vite configuration