User:Maslen/Books/Web Dev
Appearance
< User:Maslen | Books
Reading List:
Server-Side:
- Protocol used: Hypertext Transfer Protocol
- Popular Web Servers:
- Generating Dynamic content
- Common Gateway Interface
- FastCGI
- Web Server Gateway Interface
- Understanding CGI variants: https://docs.python.org/2/howto/webservers.html
- Takeaway 1: WSGI is what you want (for Python)
- Takeaway 2: WSGI requires a web server that supports WSGI (e.g., Apache, nginx) and a WSGI application
- Creating a WSGI-compatible app: https://docs.pylonsproject.org/projects/webob/en/stable/do-it-yourself.html
- Python Web Frameworks
- Connecting Python Web Frameworks to Web Servers
- WSGI-based deployment:
- Note: You have several options which web server to use: Apache, nginx, gunicorn, etc. There are tradeoffs for each.
- E.g., deploying Flask via WSGI, etc: http://flask.pocoo.org/docs/1.0/deploying/
- E.g., deploying Django via WSGI: https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
- https://django-best-practices.readthedocs.io/en/latest/deployment/servers.html#nginx
- Gunicorn
- Use of nginx + gunicorn together: https://serverfault.com/questions/331256/why-do-i-need-nginx-and-something-like-gunicorn
Front-end
- HTML Templating
- HTML/CSS/JS frameworks
- Main idea: Instead of writing HTML/CSS manually, use a framework
- Bootstrap (front-end framework)
- Angular (application platform)
- React (JavaScript library)