From a63c80caeb1f1396e53c66b7336e2d68929796d4 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Sun, 26 Jul 2020 13:05:35 -0400 Subject: [PATCH] Added dev server proxy and npm script for API --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index fca7beb..1378b3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "webqueue2-cra-test", "homepage": "/qwebtest/", + "proxy": "http://localhost:5000/", "version": "0.1.0", "private": true, "dependencies": { @@ -18,6 +19,7 @@ }, "scripts": { "start": "react-scripts start", + "start-api": "cd api/ && venv/bin/gunicorn -b 127.0.0.1:5000 api:app", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject"