For learning React & Flask
Frontend is based on create-react-app.
Frontend address - http://localhost:3000
Backend address - http://localhost:5000
- Backend
cd backend
python -m pip install flask flask-cors
- Frontend
cd frontend
yarn add package.json
- Backend
python a.py
- Frontend
npm start
- If you want to use Tailwind
First you need to change the content of tailwind.config.js's content such as
content: [
'./src/**/*.{html, js}',
],
Then type below
npm run build:css
This includes the bootstrap and tailwind css. I'm currently using bootstrap directly to the footer.