Express / Typescript API running on port 3001
const res = await fetch('http://localhost:3001/calculator', {
method: 'POST',
body: JSON.stringify({ infix: result }),
headers: {
'Content-Type': 'application/json',
} as unknown as Headers,
});
Request Body:
{
"infix": "2 + 2"
}
Request Response:
{
"Result": "4",
"Postfix": "2 2 +"
}
cd back && npm i && npm run dev
cd front && npm i && npm run dev
docker-compose up --build
# Server started on http://localhost:3001
# Client started on http://localhost:3000/
cd back && npm run test
### The front
React app using Vite, TailwindCSS and React context