更新时间:2021-07-23 20:43:21
coverpage
Clojure Web Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with Luminus
Leiningen
Dependencies of the app
Luminus file structure
Summary
Chapter 2. Ring and the Ring Server
Understanding Ring in Clojure
What is the Ring Server?
Configuring and running the Ring Server
Chapter 3. Logging
What is Timbre?
Configuring a Timbre appender
Logging with Timbre
Adding an appender
Chapter 4. URL Routing and Template Rendering
What is Compojure?
Creating a Compojure route
What is Selmer?
Creating your first page
Editing the home page
Serving the signup form
Creating the signup page
Chapter 5. Handling Form Input
Handling the form POST
Validating the form POST
Chapter 6. Testing in Clojure
The necessity of testing
Anatomy of a test
Writing and running our first test
Writing a high-level integration test
Chapter 7. Getting Started with the Database
Creating the database schema
Maintaining the database schema
Adding data to the database
Chapter 8. Reading Data from the Database
Creating the catalog
Fetching albums from the database
Creating the recently added route
Rendering the results
An exercise!
Chapter 9. Database Transactions
Introduction to Database Transactions
The ACID properties
Importance of database transactions
Implementing a transaction
Extending the application requirements in brief
Chapter 10. Sessions and Cookies
Sessions
Setting up sessions
Interacting with the session
Restricted routes
Cookies
Extending the application: brief requirements
Chapter 11. Environment Configuration and Deployment
Environ
Setting and resolving environment configurations
Adjusting the database connection
Deploying the hipstr application
Appendix A. Using Korma – a Clojure DSL for SQL
Getting Korma
The Quick Korma Crash Course
Port the models from YeSQL to Korma
Index