My submission for the Docker Project for CPSY300.
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 httpTo run the API (without building), execute,
dotnet run . --no-build --launch-profile httpWeb 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 installTo run the Web App, execute,
pnpm run devTo build the Web App execute,
pnpm run buildNote
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.
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