TWOpen to Opportunities
Open to Opportunities
Let's Talktehanwijeratne7@gmail.com
← All projects

Full-stack mobile app · Portfolio project

CampusFlow

A campus management app for Northbridge University, a fictional university. Students book facilities, pay fees, report repairs, register visitors and follow campus news. Administrators run the same services from an admin console in the same app.

CampusFlow welcome screen: the Northbridge University crest over a campus photo, with the line "Your campus, in one place".Student home screen with the next approved booking, quick actions, payments due and upcoming bookings.Admin home screen listing bookings that need approval, with Approve and Reject buttons.
App modules
7
API endpoints
56
Roles: student and admin
2

Seven modules, one app

Each module has a student side and an admin side. The API decides who can do what.

  1. Facility management

    Browse, search and filter campus spaces by category or availability, with opening hours, capacity and hourly rate. Admins create, edit and delete facilities with photos.

  2. Reservation management

    Pick a day and a free time slot and request a booking. Admins approve or reject it with a reason, and mark it completed.

  3. Staff management

    A staff directory with search and a department filter. Admins add, edit and remove staff, with photos.

  4. Payment managementSimulated

    Balances, payment history and a simulated checkout. An approved paid booking is billed automatically. No card details are collected and no money moves.

  5. Maintenance and complaints

    Report a problem with up to three photos and follow its status history. Admins assign staff, set status and priority, and reply.

  6. Visitor management

    Register a visitor and get a pass code. Admins approve or reject, look the pass up at the gate, and check visitors in and out.

  7. News and events

    A searchable feed of news and upcoming or past events. Admins publish, edit, unpublish and delete posts with a cover photo.

Screens

Screens from the web build at phone size (390 × 844) and desktop size (1440 × 900), using the fictional sample data. Select a screen to see it full size.

  • Onboarding screen introducing CampusFlow.
    Onboarding
  • CampusFlow sign-in screen.
    Sign in
  • Student home screen with the next booking, quick actions, payments due and upcoming bookings.
    Student home
  • Facility detail screen for Aldridge Main Library with capacity, opening hours, booking fee, location and amenities.
    Facility
  • Booking screen for choosing a day and a free time slot.
    Booking
  • Payments screen with the outstanding balance and payment history.
    Payments (simulated)
  • Maintenance request detail screen with its status history.
    Maintenance request
  • Approved visitor pass with its pass code, to show at the main gate, and the visit details.
    Visitor pass
  • Admin home screen listing bookings that need approval.
    Admin home
CampusFlow student home in a desktop browser, with a sidebar and width-limited content.
Student home on a desktop browser
CampusFlow admin console in a desktop browser, with booking approvals and fees collected.
Admin console on a desktop browser

How it is built

A React Native client talks to a typed REST API over HTTPS, with a JWT on every request.

  • Roles enforced by the API

    Middleware checks the token and the role on every protected route, and controllers check ownership. The role and active status are read from the database on each request, not trusted from the token.

  • Booking rules on the server

    A booking is checked against existing bookings, opening hours and capacity. Admin approval checks for conflicts again.

  • Tokens that can be revoked

    Each JWT carries the account's token version. Signing out or changing the password raises it, so every earlier token stops working. On phones the token is kept in the device keychain or keystore.

  • Image uploads

    Multer accepts images only, up to 5 MB and four files per request, and the API stores them on Cloudinary. The Cloudinary secret stays on the server.

  • A layered, validated API

    Routes, controllers, services and Mongoose models are kept apart. Every request body is validated, and errors come back per field, so the app shows them under the matching input.

  • Tested business rules

    API tests run against a temporary in-memory MongoDB and cover sign-in, role checks and each module's rules, such as booking conflicts, billing, visitor check-in and news visibility.

Android app

Not available yet

There is no Android download yet. A release build of CampusFlow only talks to a hosted HTTPS API, and the API has not been deployed. It has been run and tested locally against MongoDB Atlas and Cloudinary. An APK built today would stop at the sign-in screen, so none is offered here.

Try it now

The code, setup steps and API documentation are on GitHub. With the API running on your computer, the Expo app connects to it from your phone on the same network.

Getting started on GitHub (opens in a new tab)

CampusFlow is a portfolio demonstration project. Northbridge University and every person, building and record in the sample data are invented, and payments are simulated.

Certificate viewer

Send an email

Choose your email app or a webmail service.

tehanwijeratne7@gmail.com

If your email app does not open, choose Gmail or Outlook.