/react-flask-mongo-app

Sample React Flack MongoDB WebApp for CRUD sandbox test, dev, & learning

Primary LanguageJavaScript

react-flask-mongo-app

Sample dev app for testing stuff

Super simple example

based on the example here: https://dev.to/nagatodev/how-to-connect-flask-to-reactjs-1k8i

cd flask_react

# setup virtual environment with flask & python-dotenv and whatever else...
python3 -m venv .venv
source .venv/bin/activate
pip install flask python-dotenv pymongo

# start the flask backend
npm run start-backend

# start the mongodb database
npm run start-database

# start react frontend
npm start

navigate in browser to http://localhost:3000/ and develop your sandbox React + Flask + MongoDB app

Pre-requisites for local dev:

Using Homebrew on macOS, we install python, npm & mongo. See: