This base configuration includes:
-
Backend: Google AppEngine Standard (python) (abbr: GAE) with Flask at /default
-
Backend: React app (configured through create-react-app) at /web
-
Scripts
yarn start
: Install deps, runs GAE local server, React's Node serveryarn deps
: Makes sure GAE and React dependencies are installedyarn clean
: Cleans all temp files created by run, test & venv- Also deletes all .pyc files in project
- test: Runs pytest and yarn test
- Installs pytest+deps and runs _dependencies
- venv: Generates virtualenv for the project
- All commands will cause venv ensure an environment has been created
source venv
: Will load it into your current shellvenv -p
: Will return the path of the virutal environment
- Create a sub-module in your repository named "util" in the root directly:
git submodule add https://github.com/patelnav/gae-react util
- Copy all json files from /util to root:
cp util/*.json .
- Modify
package.json
with "gae-react" configurations