Web Server
Explore how to deploy a complete web application by creating a production build using npm and managing server architecture with Flask, WSGI, Gunicorn, and NGINX. Understand how to serve static files efficiently while handling dynamic requests with reverse proxy setup for seamless application delivery.
Building the application for production
Once your application is working in the development environment and we want to deploy it to production, we should run the npm production script:
npm run build
This script transpiles our Python code and then bundles it with a different set of options that make our application optimized for a production environment. The source maps are removed, and the JavaScript is minified to make the bundle as small as possible. The bundled files are saved in the bookapp/client/dist/prod/ folder of the ...