/machine-translation-application
├── /backend
│ ├── app.py # Flask app
│ ├── Dockerfile # Dockerfile for backend
│ ├── download_model.py # Download mBART model
│ ├── requirements.txt # Python dependencies
│ └── st_app.py # Streamlit app
│
├── /frontend
│ ├── /src
│ │ ├── /controllers
│ │ ├── /public
│ │ ├── /routes
│ │ └── index.ts # Express app
│ │ └── server.ts # Server
│ │
│ ├── .dockerignore # Dockerignore for frontend
│ ├── .gitignore # Gitignore for frontend
│ ├── Dockerfile # Dockerfile for frontend
│ ├── nodemon.json # Nodemon config
│ ├── package.json # Node dependencies
│ └── tsconfig.json # TypeScript config
│
├── docker-compose.yml # Docker-compose for frontend and backend
└── README.md # This file
To run the project locally, you need to have Docker and run the following command:
docker-compose -f docker-compose.yml up
Then, open the browser and go to http://localhost:8333 to use the application.
- Repo nodejs-openai-image for the frontend
- Repo mt_demo for the backend
- Writing docker-compose.yml file
- Setup TypeScript project
- Copying none ts files when building project
- Docker Build Typescript Node.js Server