Basic frontend and backend for faster launch of new repositories.
Using vite template:
npm create vite@latest my-app -- --template react-ts
💅 Format your files:
npm run format
💻 Dev mode:
npm run dev
In an other terminal run tailwind for CSS:
npx tailwindcss -i ./src/style/input.css -o ./src/style/output.css --watch
🏗️ Build mode:
npm run build
🐋 Dockerize:
docker build -t frontend:latest .
docker run -p 3000:3000 frontend
uvicorn main:app --reload
Dockerize:
docker build -t backend:latest .
docker run -p 8000:8000 backend