Quick Start Guide
Get the UiASub website running locally in just a few minutes!
Prerequisites
- Git - For cloning the repository
- A local web server - To avoid CORS issues with JSON data
- A code editor - VS Code recommended
Installation
1. Clone the Repository
2. Start a Local Server
Choose one of the following methods:
Option A: Python (Simplest)
Then visit: http://localhost:8000
Option B: VS Code Live Server (Recommended)
- Install the Live Server extension
- Right-click
index.htmland select "Open with Live Server" - The site will open automatically in your browser
Option C: Node.js http-server
Project Overview
Once running, you'll see:
- Norwegian site at the root (
/) - English site at
/en/
Key Files to Know
index.html- Main landing page (Norwegian)pages/- Content pages (Norwegian)en/- English version of the sitedata/members.json- Team member databasecss/- All stylesheetsjs/- All JavaScript functionality
Making Your First Change
Update a Team Member
- Open
data/members.json - Find or add a member entry:
{
"id": 1,
"image": "member-photo.jpg",
"name": "Your Name",
"role_no": "Din Rolle",
"role_en": "Your Role",
"group": "data"
}
- Add the profile picture to
images/profie_shared/ - Refresh the browser to see changes
Edit Page Content
- Navigate to the page file (e.g.,
pages/about.html) - Make your HTML changes
- Save and refresh the browser
Modify Styles
- For global changes: Edit
css/custom.cssorcss/site.css - For page-specific changes: Edit the corresponding CSS file (e.g.,
css/about.css) - Changes appear immediately if using Live Server
Testing Your Changes
Before committing:
- Test on both Norwegian (
/) and English (/en/) versions - Check responsive design (mobile, tablet, desktop)
- Verify all links work
- Test dynamic content loading (members, news, etc.)
Deploying Changes
GitHub Pages automatically deploys when you push to the main branch:
Your changes will be live at uiasub.github.io within minutes!
Next Steps
- Read the Project Structure guide
- Learn about Member Data Management
- Understand the Authentication System for internal tools
- Explore Styling & CSS guidelines
Troubleshooting
JSON data not loading
- Cause: CORS restrictions when opening HTML files directly
- Solution: Always use a local web server
Images not displaying
- Check: File paths are case-sensitive
- Verify: Images exist in the correct directory
Live Server not working
- Reload: Try stopping and restarting the server
- Check: No other server is running on the same port