kakao i cloud hands-on example project.
The react version of [library-monolithic].
- Run Backend Application
- Build
# move to working directory ex) */library-react $ ./gradlew build
- Execute
java -jar -Dspring.profiles.active=local \ ./build/libs/library-react-SNAPSHOT.jar
- Build
- Run React Application
cd ./client npm install npm start
os: ubuntu 20.04
java-version: 11
node-version: 18.13
install requirements
cd ${PROJECT_DIR}
bash install-requirements.sh
- Edit app-env.sh
# move to working directory ex) */library-react $ vi app-env.sh
# ... # port MYSQL_HOST='172.16.227.224' # port DB_USERNAME='admin' # port DB_PASSWORD='root1234'
- Build/Run application
bash app-build.sh bash start-app.sh
- Edit web-env.sh
cd ./client vi ./web-env.sh
# export APP_ENDPOINT="http://localhost:8080" <- Backend Application's endpoint # ...
- Build
bash web-build.sh
- Deploy with web-server(Nginx)
bash start-web.sh