- $ npx create-react-app react-flask-app
- $ cd react-flask-app
- $ mkdir api
- $ cd api
- $ python -m venv venv
- $ venv/Scripts/activate
-
"start-api": "cd api && flask run --no-debugger"
-
$ npm run start-api
- @emotion/react
- @emotion/styled
- @material-ui/core
- @mui/icons-material
- @mui/material
- @mui/styled-engine
- @testing-library/jest-dom
- @testing-library/react
- @testing-library/user-event
- axios
- react
- react-dom
- react-scripts
- web-vitals
- cors
- dotenv
- Flask
- flask_sqlalchemy
- flask_marshmallow
- flask_cors
- Clone git : git clone https://github.com/sanjoy-kumar/flask-mysql-react-js.git
- Install dependencies: npm i
- Run the server or back end: npm run start-api or flask run
- Run the client or front end: npm start (note: nodemon is not used, so you should have to restart your server)
- Visit http://localhost:5000/ for server
- Visit http://localhost:3000/ for client