Quickstart Guide
This guide will get you from zero to a running Campus instance with your first login in just a few minutes.Prerequisites
Before you begin, ensure you have:- Bun installed (Download from bun.sh)
- PocketBase executable (Download from pocketbase.io)
- Git for cloning the repository
Install Dependencies
Use Bun to install all project dependencies:This will install all frontend dependencies including Svelte, SvelteKit, Tailwind CSS, and other required packages.
Setup PocketBase
Download the PocketBase executable for your operating system and place it in the project root directory.Run the migrations to set up your database schema:Then start the PocketBase server:The PocketBase admin UI will be available at
PocketBase will automatically apply all migrations from the
pb_migrations folder, creating the necessary database structure.http://localhost:8090/_/Start the Development Server
Open a new terminal window (keep PocketBase running) and start the frontend development server:The application will be available at
http://localhost:5173What’s Next?
Now that you have Campus running, you can:Explore Features
Try creating posts, joining groups, and adding events to your calendar
Customize Your Profile
Set up your academic profile with your education and research interests
Create Spaces
Organize communities by creating Spaces and Groups
Share Resources
Upload and share educational materials with your community
Troubleshooting
Port already in use
Port already in use
If port 5173 or 8090 is already in use, you can:
- Stop any other processes using these ports
- Configure PocketBase to use a different port with
./pocketbase serve --http=0.0.0.0:8091 - Configure Vite to use a different port in
vite.config.ts
PocketBase migrations fail
PocketBase migrations fail
Ensure you’ve:
- Downloaded the correct PocketBase executable for your OS
- Made the executable file runnable:
chmod +x pocketbase(Linux/Mac) - Are running the command from the project root directory
Dependencies installation fails
Dependencies installation fails
Make sure you have the latest version of Bun installed:Update Bun if needed:
bun upgradeFor detailed installation instructions and configuration options, see the Installation Guide.