Backend for Project Hermes - a queue system for DCISM students, by DCISM students.
Ensure the following are installed:
Clone the project to your local machine.
git clone https://github.com/usc-cisco/hermes-api.gitOpen the project in Visual Studio Code:
- Open the Command Palette (
Ctrl + Shift + PorCmd + Shift + Pon macOS). - Run
Dev Containers: Reopen in Container.
Note
The initial build may take some time.
Once the environment is ready, start the development server:
bun devbun run db:migration-generatebun run db:migratebun run db:seed- Does this work with WSL?
Yes, read this article.
TL;DR: Windows users may need Docker Desktop, which detects WSL 2 if installed and can use it as the backend. The WSL integration is optional. The key is having Docker installed, regardless of WSL.
- How can I close the container?
Exiting VSCode will automatically close the container and save resources. To further clean up artifacts, run these commands:
# Stop and remove all containers
docker stop $(docker ps -qa)
docker rm $(docker ps -qa)
# Remove all local images
# Warning: This will remove images locally, and you'll need to re-pull the images if needed
docker rmi $(docker images -qa)- How can I return to my local environment?
- Open the Command Palette (
Ctrl + Shift + PorCmd + Shift + Pon macOS). - Run
Dev Containers: Reopen Folder Locally.
For setup issues, contact Jan Carlo.