⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

chen-dawn/react-servlet-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

React Frontend with Java Servlet Backend

Create React App

npx create-react-app frontend
brew install yarn

Config React project

yarn add google-cloud
yarn add stable
yarn add serve

Also add app.yaml and update scripts,engines sections in package.json. Remove package-lock.json.

Run locally

// From frontend directory
yarn local
// From backend directory
mvn appengine:devserver

Deploy to gcloud

gcloud init
gcloud config set project [Project_ID]
yarn build // From frontend directory
gcloud app deploy // From frontend directory
mvn package appengine:deploy // From backend directory
gcloud app deploy dispatch.yaml // Config routing

Change node version

node -v // Check node version
sudo npm install -g n
sudo n 10.21.0  // Change node version to 10.21.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •