Skip to content

Max Olofsson #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Max Olofsson #2

wants to merge 1 commit into from

Conversation

maaxolofsson
Copy link

@maaxolofsson maaxolofsson commented Oct 23, 2024

Frontend: http://172.167.42.59/
Backend: http://172.167.42.59:5000/authors and http://172.167.42.59:5000/books

After running Terraform commands these resources are created on Azure:
image

Uploading backend .jar to server (VM):
upload jar to server

After installing Java, running the .jar file on the server:
java backend running

Endpoint can be reached:
endpoint reached browser

Extension

Changing the API address in the React app to be the newly created VM:
change baseurl in frontend app

Building the React app to dist folder and uploading to server:
building frontend app and uploading to server

After install Node etc. on the VM I use pm2 to run the React app in the background. (Need to use "sudo" since 80 is a privileged port.)
pm2 running frontend on server
frontend online on server

Frontend works and communicating with backend on the same VM:
frontend app works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant