Skip to content

Commit

Permalink
Merge pull request #51 from Ammar-tcd/Dan-Frontend-Backend-Integration
Browse files Browse the repository at this point in the history
Dan frontend backend integration
  • Loading branch information
DanPreda90 authored Mar 18, 2024
2 parents 3576933 + b4dc2bd commit 1c7a2a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ def get_task():
return Response(status=400,response={"Unknown error occured"})

if __name__ == "__main__":
app.run(debug=True)
app.run(debug=True, host='0.0.0.0', port=5000)
# app.run(debug=True)
2 changes: 2 additions & 0 deletions DockerCommand.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build ./SwEng-Group-14-SemanticProductLink -t image_name //build images
docker run -d -p 8080:5000 image_name //run the container, the programe will be mapped to local port 8080
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:3.9-alpine
RUN mkdir -p /usr/src/app
COPY ./* /usr/src/app/
WORKDIR /usr/src/app
RUN pip install Flask flask-cors requests
CMD python backend.py

0 comments on commit 1c7a2a1

Please sign in to comment.