Single-page application for the SocRob@Home team, built with Nuxt 3 and Vuetify, and hosted on GitHub Pages.
This project is a single-page website developed to showcase the SocRob@Home team, built using Nuxt 3 for its powerful SSR and static site generation capabilities and Vuetify for UI components.
- Clone the Repository:
git clone https://github.com/IRS-group/socrobwebsite.git cd socrobwebsite
- Install Dependencies: Make sure you have Node.js installed, then install project dependencies by running:
npm install
- Nuxt Configuration:
- No additional configuration is required for initial setup.
- Ensure that nuxt.config.ts has the correct baseURL and buildAssetsDir settings for local testing and deployment (explained below).
The project is modular, with each section of the site divided into Vue components for easier navigation and editing.
- Local Development:
- To start the project locally, first remove (or comment out) the following lines in
nuxt.config.ts
:app: { baseURL: '/socrobwebsite/', // Adjust this to match your GitHub Pages repo name buildAssetsDir: 'assets' }
- Then run:
npm run dev
- The website will be accessible at http://localhost:3000/.
- Testing & Content Editing:
- You can edit content in the respective component files within the
components/
directory. - Save your changes to see them automatically reflected at
http://localhost:3000/
.
- Note on Image Paths & Deployment:
- During deployment, we encountered issues with image paths, especially when looping over arrays using
v-for
. To address this, we replaced looped image handling with individual statements. This temporary workaround will be improved in future versions.
We use GitHub Pages to host the website. Deployment involves generating the static site files and pushing them to the gh-pages
branch.
- Deployment Configuration:
- Uncomment (or add back) the following lines in
nuxt.config.ts
before deployment:app: { baseURL: '/socrobwebsite/', // Adjust this to match your GitHub Pages repo name buildAssetsDir: 'assets' }
- Generate & Deploy:
- To prepare and deploy the site, run:
npm run generate npm run deploy
- Check Deployment Status:
- The website takes a few minutes to deploy. You can monitor the deployment status on GitHub Pages settings. For additional deployment details, click on "Last deployed" for logs.
- Helpful Resources: We used the following tutorials to set up GitHub Pages deployment for Nuxt 3:
- Fix night mode display issues
- Resolve image path and
v-for
issues on deployment - Improve the "Publications" section with better styling and layout