patelnav / gae-react

Project template for a React app with a Google AppEngine Backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GAE-REACT

Project template

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 server
    • yarn deps: Makes sure GAE and React dependencies are installed
    • yarn clean: Cleans all temp files created by run, test & venv
      • Also deletes all .pyc files in project
    • test: Runs pytest and yarn test
    • 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 shell
      • venv -p: Will return the path of the virutal environment

How to use

  • 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

About

Project template for a React app with a Google AppEngine Backend


Languages

Language:Python 89.2%Language:Shell 10.8%