It's tool to capture http(s) requests and save it in local folder.
docker pull ghcr.io/leliw/proxy-one-http:latest
docker run -p 8000:8000 -p 8999:8999 -v c:/temp:/app/data ghcr.io/leliw/proxy-one-http:latest
Create a file frontend/src/proxy.conf.json
.
Mind that localhost
and 127.0.0.1
is not the same
in Node v. 17 (see: https://angular.io/guide/build).
{
"/api": {
"target": "http://127.0.0.1:8000",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}
Run backend in one terminal,
cd backend
uvicorn main:app --reload
and frontend in another terminal.
cd frontend
ng serve --proxy-config=src/proxy.conf.json