diff --git a/Makefile b/Makefile index 693ef9b2aaec37942c81b422312ea0b5f0751ac4..c483e0b12516af8ea4d80e3cf72efbf340d9a9a1 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,19 @@ -.PHONY: build run +.PHONY: build run run-dev unit e2e clean-docker build-docker: docker build -t sparesti_frontend . run-docker: - docker run -p 5173:5173 sparesti_frontend + docker run --rm --name sparesti_frontend_container -p 5173:5173 sparesti_frontend + +clean-docker: + -docker stop sparesti_frontend_container + -docker rm sparesti_frontend_container + +run: + make build-docker + make clean-docker + make run-docker run-dev: npm run dev @@ -13,4 +22,4 @@ unit: npm run test:unit e2e: - npm run test:e2e \ No newline at end of file + npm run test:e2e diff --git a/src/stores/userStore.ts b/src/stores/userStore.ts index a54494ddbd27e1539d5f97b71637995a4a7f8c32..eff4fd1479cd1bf9b70c10e6650a054ae0b6321c 100644 --- a/src/stores/userStore.ts +++ b/src/stores/userStore.ts @@ -205,7 +205,7 @@ export const useUserStore = defineStore('user', () => { console.log(encodedResult) await axios - .post('http://localhost:8080/auth/finishBioLogin/katanta1', { + .post(`http://localhost:8080/auth/finishBioLogin/${username}`, { credential: JSON.stringify(encodedResult) }) .then((response) => {