Complete guide to get your Study Abroad Portal up and running.
Check if already installed:
node --version
npm --versionIf not installed:
- Go to: https://nodejs.org/
- Download LTS (Long Term Support) version
- Install (follow installer instructions)
- Restart your terminal/command prompt
- Verify installation:
node --version
cd /path/to/study-abroad-portalOn Windows:
cd C:\Users\YourName\Desktop\study-abroad-portalOn Mac/Linux:
cd ~/Desktop/study-abroad-portalnpm installWhat this does:
- Installs Express (web server framework)
- Installs CORS (cross-origin resource sharing)
- Installs Body-parser (request parsing)
- Creates
node_modulesfolder - Creates
package-lock.jsonfile
Expected output:
added 57 packages, and audited 58 packages in 3s
found 0 vulnerabilities
npm startYou should see:
╔════════════════════════════════════════════════════════════╗
║ ║
║ 🌍 Study Abroad Portal Server ║
║ ║
╚════════════════════════════════════════════════════════════╝
✅ Server is running successfully!
🌐 Local: http://localhost:3000
🌐 Network: http://localhost:3000
╔════════════════════════════════════════════════════════════╗
║ Available Pages: ║
╠════════════════════════════════════════════════════════════╣
║ • Home: http://localhost:3000/ ║
║ • Start Page: http://localhost:3000/start ║
║ • Login: http://localhost:3000/login ║
...
Go to: http://localhost:3000
🎉 Success! The portal is now running!
# Start the server
npm start
# Alternative start commands (all do the same thing)
npm run dev
npm run serve
# Stop the server
Ctrl + C- http://localhost:3000/ (Home)
- http://localhost:3000/start (Landing page)
- http://localhost:3000/login
- http://localhost:3000/profile
- http://localhost:3000/preparation
- http://localhost:3000/test-prep
- http://localhost:3000/universities
- http://localhost:3000/scholarships
- http://localhost:3000/visa
- http://localhost:3000/jobs
- http://localhost:3000/api/health
- http://localhost:3000/api/universities
- http://localhost:3000/api/scholarships
Solution:
- Node.js is not installed
- Install from: https://nodejs.org/
- Restart terminal after installation
Solution:
- npm comes with Node.js
- Reinstall Node.js from: https://nodejs.org/
- On Linux, install separately:
sudo apt install npm
Solution:
npm installIf that fails:
npm install --forceOr install manually:
npm install express cors body-parserSolution A: Stop other process using port 3000
Solution B: Use different port:
# Linux/Mac
PORT=8080 npm start
# Windows Command Prompt
set PORT=8080 && npm start
# Windows PowerShell
$env:PORT=8080; npm startThen visit: http://localhost:8080
Solution:
- Check that
package.jsonexists in current directory - Verify you're in the correct directory:
ls(should show package.json) - If missing, you're in wrong directory
Solution:
# Fix npm permissions
sudo chown -R $(whoami) ~/.npm
# Or install with sudo
sudo npm installSolution:
# Clear npm cache
npm cache clean --force
# Try install again
npm installSolution (Linux/Mac):
sudo npm install -g npm@latestSolution (Windows):
- Run Command Prompt as Administrator
- Run:
npm install
If you modify server.js or other server files:
- Stop server:
Ctrl + C - Start again:
npm start
Note: HTML, CSS, and client-side JS changes don't need server restart. Just refresh browser.
- Find
start.htmlorhome.htmlin file explorer - Double-click it
- Opens in default browser
- Done! ✅
- Right-click
start.htmlorhome.html - Select "Open with"
- Choose browser (Chrome, Firefox, Edge, Safari)
- Done! ✅
- Open your web browser
- Drag
start.htmlorhome.htmlinto browser window - Done! ✅
- Open browser
- File → Open File (or Ctrl+O / Cmd+O)
- Navigate to project folder
- Select
start.htmlorhome.html - Done! ✅
| Feature | With Server | Without Server |
|---|---|---|
| Installation | Requires Node.js/npm | None needed |
| URLs | Clean (/home) | File paths (home.html) |
| API Endpoints | Available | Not available |
| Setup Time | 5 minutes | 0 seconds |
| Best For | Development, Testing | Quick viewing, Sharing |
| Database Ready | Yes (with setup) | No |
| Internet Required | No (except images) | No (except images) |
- ✅ You're developing features
- ✅ You want clean URLs
- ✅ You plan to add database
- ✅ You want API endpoints
- ✅ You're testing in production-like environment
- ✅ You just want to view/test quickly
- ✅ You don't want to install anything
- ✅ You're sharing with someone
- ✅ You're on a restricted computer
- ✅ You want simplicity
-
Explore the Portal
- Navigate through all pages
- Test features and tools
- Create a user account
-
Customize Content
- Edit university data
- Add scholarships
- Update country information
-
Database Integration (Optional)
- Read
MYSQL_INTEGRATION_GUIDE.md - Set up MySQL database
- Connect backend to database
- Read
-
Deploy Online
- See README.md deployment section
- Choose hosting platform
- Upload and go live!
- README.md - Complete documentation
- QUICK_START.txt - Quick reference
- MYSQL_INTEGRATION_GUIDE.md - Database setup
- AUTH_SYSTEM_README.md - Authentication details
- Node.js installed and verified
- Navigated to project directory
- Ran
npm installsuccessfully - Ran
npm startsuccessfully - Opened http://localhost:3000 in browser
- Portal loads correctly
- Located HTML files
- Opened
start.htmlorhome.htmlin browser - Portal loads correctly
Your Study Abroad Portal is now ready to use!
Questions? Check the troubleshooting section or README.md
Good luck with your study abroad journey! 🌍