# 10. Best Practices

In this chapter, we present some of the best ways to use Apache CouchDB. These usage patterns reflect many years of real-world use. We hope that these will jump-start your next project, or improve the performance of your current system.

- 10.1. Document submission using HTML Forms
  - 10.1.1. The HTML form
  - 10.1.2. The update function
  - 10.1.3. Example output
- 10.2. JavaScript development tips
- 10.3. nginx as a Reverse Proxy
  - 10.3.1. Basic configuration
  - 10.3.2. Reverse proxying CouchDB in a subdirectory with nginx
  - 10.3.3. Authentication with nginx as a reverse proxy
  - 10.3.4. SSL with nginx