Command | Description |
---|---|
./gradlew dev |
Runs both the backend and frontend concurrently |
./gradlew run |
Runs only the Ktor backend |
cd frontend && yarn dev |
Runs only the Next.js frontend |
docker build -t emottak-test-client . |
Build local docker image |
docker run --name emottak-test-client-backend -p 8080:8080 -t emottak-test-client-backend -f backend/Dockerfile backend |
Run local docker image of backend |
docker run --name emottak-test-client -p 3000:3000 -t emottak-test-client -f frontend/Dockerfile frontend |
Run local docker image of frontend |
docker rm -f emottak-test-client |
Forcefully stop and remove a container |
To run both the backend and frontend concurrently in development mode with hot-reloading, use the following command:
./gradlew dev
This command will start the Ktor backend and the Next.js frontend together. The backend will be accessible at http://localhost:8080, and the frontend will be accessible at http://localhost:3000
To run the backend only, use the following command:
./gradlew backend
This command will start the Ktor backend.
To run the frontend only, use the following command:
./gradlew frontend
This command will start the Next.js frontend.