Autostrada · Blogs
Blogs from Autostrada on TechiSeek brings together work published by Autostrada. Open any title to read it on the original site. See the newest titles. 34 public listings.
- Documentation - Traditional web application - Running background tasks - Autostrada (Autostrada)A backgroundTask() helper is included in the cmd/web/helpers.go file. You can use this in your handlers, helpers and middleware to run any…
- Documentation - JSON API - Parsing JSON requests - Autostrada (Autostrada)HTTP requests containing a JSON body can be decoded using the functions int the internal/request package.
- Documentation - Traditional web application - User accounts and authentication - Autostrada (Autostrada)If you enable the User accounts and authentication option when generating your codebase, the application will be configured to support user…
- Documentation - Traditional web application - Sending HTML responses - Autostrada (Autostrada)Autostrada provides a variety of helper functions for sending both full HTML pages and arbitrary HTML snippets to clients.
- Documentation - Traditional web application - Serving static files - Autostrada (Autostrada)Static files for your web application should be stored inside the assets/static directory. By default, this directory contains the sub-dire…
- Documentation - Traditional web application - Automatic HTTPS - Autostrada (Autostrada)If you enable the Automatic HTTPS option when generating your codebase, the application can automatically obtain and renew TLS certificates…
- Documentation - JSON API - Admin Makefile - Autostrada (Autostrada)Every codebase includes a Makefile in the project root. This contains a variety of commands to make it easy to run common administration an…
- Documentation - Autostrada (Autostrada)The generated codebase includes different features and behavior depending on whether you create a traditional web application or JSON API.
- Documentation - Traditional web application - Creating handlers - Autostrada (Autostrada)Handlers are responsible for executing your business logic and writing HTTP responses.
- Documentation - Traditional web application - SQL migrations - Autostrada (Autostrada)If you select the option to include helpers for managing SQL migrations when generating your codebase, the admin makefile in the will conta…
- Documentation - Traditional web application - Working with HTML forms - Autostrada (Autostrada)The generated codebase includes a request.DecodePostForm() function in internal/request/forms.go, which you can use to decode data from HTM…
- Documentation - Traditional web application - Server-side sessions - Autostrada (Autostrada)If you select the Server-side sessions option when generating your codebase, the application will be configured to support session manageme…
- Documentation - Traditional web application - Live reloading - Autostrada (Autostrada)To run the application with live reloading, use the make run/live command from the admin makefile:
- Guarantee - Autostrada (Autostrada)If Autostrada Plus isn't right for you, then just send an email to support@autostrada.dev within 30 days of your purchase and we'll issue a…
- Documentation - Traditional web application - Working with SQL databases - Autostrada (Autostrada)The generated codebase will be configured to work with either SQLite3, PostgreSQL, MySQL, or no database, depending on the options you choo…
- Documentation - Traditional web application - Git integration - Autostrada (Autostrada)If you select the Git integration option, a .gitignore file will be included containing appropriate values for the generated codebase, and…
- Documentation - Traditional web application - Error notifications - Autostrada (Autostrada)If you enable the Error notifications option when generating your codebase, the application will support sending error notifications by ema…
- Documentation - Traditional web application - Basic auth - Autostrada (Autostrada)If you select the Basic auth option when generating your codebase, the cmd/web/middleware.go file will include a basicAuth() middleware fun…
- Documentation - Traditional web application - Getting started - Autostrada (Autostrada)After you generate a codebase with Autostrada, you'll be shown 'how to run your application' instructions tailored to the specific options…
- Documentation - Traditional web application - Helper functions - Autostrada (Autostrada)Your generated codebase will contain a cmd/web.helpers.go file which contains miscellaneous helper functions for the code in the cmd/web pa…
- Documentation - Traditional web application - Injecting dependencies - Autostrada (Autostrada)The application struct, defined in the cmd/web/main.go file, holds the dependencies for your handlers, middleware, and helper functions.
- Documentation - Traditional web application - Sending emails - Autostrada (Autostrada)If you enable the Emails option when generating your codebase, the application will be configured to support sending emails via SMTP.
- Documentation - Traditional web application - Error handling - Autostrada (Autostrada)Your generated codebase will contain a cmd/web/errors.go file with helper methods for managing error conditions and sending appropriate HTT…
- Documentation - Traditional web application - Routing requests - Autostrada (Autostrada)Application routes are declared in the routes() method in the cmd/web/routes.go file. This method defines how HTTP requests – matched on me…
- Documentation - JSON API - Getting started - Autostrada (Autostrada)After you generate a codebase with Autostrada, you'll be shown 'how to run your application' instructions tailored to the specific options…
- Documentation - Traditional web application - Template functions - Autostrada (Autostrada)The internal/funcs/funcs.go file contains a selection of helper functions for use in templates.
- Documentation - Traditional web application - Custom error pages - Autostrada (Autostrada)If you select the Custom error pages option when generating your codebase, the error handling helper functions in cmd/web/errors.go will be…
- Documentation - Traditional web application - Logging - Autostrada (Autostrada)The generated codebase supports leveled logging via the standard library log/slog package. For instructions on how to use log/slog, please…
- Documentation - Traditional web application - Request logging - Autostrada (Autostrada)If you select the Request logging option when generating your codebase, the cmd/web/middleware.go file will include a logRequest() middlewa…
- Documentation - Traditional web application - Secure cookies - Autostrada (Autostrada)If you select the Secure cookies option when generating your codebase, an internal/cookies package will be included. This provides helper f…
- Login - Autostrada (Autostrada)If you already have an Autostrada Plus account, please enter your email address and we'll send you a new magic link to log in.
- Documentation - Traditional web application - Configuration settings - Autostrada (Autostrada)The available configuration settings for your application – and how to work with them – will vary depending on the options you select when…
- Documentation - Traditional web application - Admin Makefile - Autostrada (Autostrada)Every codebase includes a Makefile in the project root. This contains a variety of commands to make it easy to run common administration an…
- Autostrada: Code generator for Go projects (Autostrada)Effortlessly generate the perfect starting point for your Go web application or JSON API.