Fiber Boilerplate

screenshot of Fiber Boilerplate
scss

A boilerplate for the Fiber web framework

Overview

The Fiber Boilerplate is a web framework that provides a ready-to-use starting point for developing web applications. It simplifies the configuration process, provides routing examples, includes pre-built controllers and views, and utilizes the GORM v2 ORM for database management. Additionally, it offers asset compilation using Laravel Mix and supports Docker for easy deployment. The boilerplate also includes live reloading functionality for efficient development.

Features

  • Configuration: The boilerplate uses a single .env file for all configurations, making it easy to customize settings like database connections, Fiber framework options, and middleware settings. A .env.full file provides a comprehensive list of available configuration options.
  • Routing: The boilerplate provides routing examples for both web and API routes, located in the /routes directory. Developers can easily adjust the routing structure to fit their needs.
  • Views: The boilerplate includes pre-built views located in the /resources/views directory. Developers can modify these views or change the views engine by editing the .env file or using environment variables.
  • Controllers: Example controllers are included in the /app/controllers directory, which can be extended or edited based on specific requirements.
  • Database: The boilerplate uses the GORM v2 package as an ORM for managing database models. Developers can refer to the GORM v2 documentation for more details on using the package.
  • Compiling Assets: Asset compilation is simplified with the use of Laravel Mix, which serves as a wrapper around Webpack. Developers can add their assets to the webpack.mix.js file and then run npm or yarn install to compile the assets.
  • Docker: The boilerplate supports Docker for easy application deployment. Developers can use the provided Docker example image by building and running it with the provided commands.
  • Live Reloading (Air): Developers can use the included configuration files for Air, which enables live reloading of the application when changes are made to models, views, or controllers. The documentation for Air provides further details on running the air command.

Summary

The Fiber Boilerplate provides a comprehensive starting point for developing web applications using the Fiber web framework. It simplifies the configuration process, offers routing examples, pre-built controllers and views, GORM v2 ORM integration, asset compilation using Laravel Mix, Docker support for easy deployment, and live reloading functionality with Air. This boilerplate is a valuable resource for developers looking to kickstart their web application development with Fiber.

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.