Playground on Flask + React

Installation

inside my-app-server:

pip install -r requirements.txt

inside my-app-client:

yarn 

Running

inside my-app-server:

# assuming you have already started mongodb server
python app.py

inside my-app-client:

yarn run start

Build and Run with Docker Compose

install brew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

install docker:

brew install docker

install docker-compose:

brew install docker-compose

inside playground:

docker-compose build
docker-compose up

useful commands:

# connect to mongodb instance with admin database
docker exec -it playground_db_1 mongo admin