Skip to content

UTSC-CSCC01-Software-Engineering-I/CampusCompass

Repository files navigation

Review Assignment Due Date

Running the Project with Docker

This project provides Dockerfiles for both the backend (Node.js/Express) and frontend (Expo/React Native web) applications. The recommended way to run the full stack is with Docker Compose.

Requirements

  • Docker and Docker Compose installed
  • Node.js version: 22.13.1 (as specified in Dockerfiles)
  • Project-specific environment variable files:
    • ./backend/.env
    • ./frontend/.env

Build and Run

  1. Ensure your .env files are present in both backend and frontend directories.

  2. From the project root, run:

    docker compose up --build

    This will build and start both services:

    • js-backend (Node.js backend)
    • ts-frontend (Expo/React frontend)

Service Details

  • Backend (js-backend)

    • Built from ./backend using Node.js 22.13.1-slim
    • Exposes port 3000 (API)
    • Requires ./backend/.env for configuration
  • Frontend (ts-frontend)

    • Built from ./frontend using Node.js 22.13.1-slim
    • Exposes port 8081 (Expo web server)
    • Requires ./frontend/.env for configuration
    • Depends on the backend service

Special Configuration

  • Both services run as non-root users for security.
  • The containers are connected via a custom Docker network (appnet).
  • The backend and frontend are started with production environment settings (NODE_ENV=production).

Ports


For any additional configuration, refer to the respective .env files in backend and frontend directories.

About

term-group-project-makeareasonableassumption created by GitHub Classroom

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 6