Skip to content

kris3713/DockerProject_CPSY300

Repository files navigation

Docker Project for CPSY300

My submission for the Docker Project for CPSY300.

📦 Building and Running 🚀

API

The API is built using the ASP.NET Core framework.

To run or build the API, you will need to have the dotNET SDK installed.

Before doing any of the tasks below, make sure to run,

dotnet restore .

To build the API execute,

dotnet build .

To build AND run the API, execute,

dotnet run . --launch-profile http

To run the API (without building), execute,

dotnet run . --no-build --launch-profile http
Web App

The Web App is built using the Astro framework, SolidJS, and TailwindCSS.

To run or build the Web App, you will need to have the Node.js and pnpm installed.

Before doing any of the tasks below, make sure to run,

pnpm install

To run the Web App, execute,

pnpm run dev

To build the Web App execute,

pnpm run build

🐳 Docker / Podman 🦦

Note

The command, podman compose is not the same as podman-compose. The podman compose command will either use docker-compose or podman-compose depending on which is installed. If you have both installed, podman compose will use docker-compose over podman-compose. There is currently no way to override this behavior for the command, podman compose.

If you have Docker or Podman installed, you can run the app easily by using, docker compose or podman compose,

  • Docker

    docker-compose up -d
  • Podman

    podman-compose up -d

Using either choice is the recommended way to run the app as it will build the image first, then run it.

📦 Building the Image

If you just want to build the image, run either of the following,

API
  • 🐳 Docker

    docker-compose build student_api
  • 🦦 Podman

    podman-compose build student_api
Web App
  • 🐳 Docker

    docker-compose build web_app
  • 🦦 Podman

    podman-compose build web_app

About

Docker (Podman) project for CPSY300

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published