Laravel Next Serverless

screenshot of Laravel Next Serverless
laravel
nextjs
styled-components

NextJs with Laravel API Lambda template deployed through github actions with Storybook deployed to github pages: mattvb91.github.io/laravel-next-serverless/

Overview:

If you're looking for a robust starter kit to kick off a project using Laravel and NextJS, this opinionated template offers a solid foundation with well-integrated libraries and deployment strategies. The use of JWT authentication enhances security, while the Serverless framework allows for streamlined deployments via Lambda. With a focus on creating a JSON API, this setup minimizes unnecessary Laravel components, making it an excellent choice for developers aiming for efficiency and performance.

The local development environment provided through Docker Compose facilitates a seamless setup process, allowing developers to focus on building their applications without worrying about environment configurations. With the integrated CI/CD workflow using GitHub Actions, testing and deployment become more manageable, ensuring that your project remains robust and reliable as it scales.

Features:

  • Opinionated Structure: This template comes with a predefined structure that streamlines development while allowing flexibility to customize as per your project needs.

  • Integrated Libraries: Built-in libraries such as styled-components and react-styled-flexboxgrid simplify styling and layout management on the frontend.

  • JWT Authentication: Enhanced security features are ensured through JWT authentication, protecting your API endpoints effectively.

  • Predefined CI/CD Workflow: A work-in-progress GitHub Action CI/CD pipeline supports running PHPUnit and Cypress tests before deployment, making your workflow efficient.

  • Docker Compose Support: A local development environment is readily configured with Docker Compose, allowing developers to start without complex setup procedures.

  • Clockwork Debugging: Built-in support for Clockwork during development aids in debugging and performance monitoring, ensuring issues can be addressed promptly.

  • Storybook Integration: With Storybook already set up, you can visualize and test UI components in isolation, improving collaboration and development speed.

  • API Proxy Configuration: The /api route is conveniently proxied to the Laravel API Lambda, simplifying API requests directly from the frontend.

laravel
Laravel

Laravel is a powerful and elegant PHP framework that provides developers with a comprehensive set of tools and features to build robust web applications. It follows the Model-View-Controller (MVC) architectural pattern, offering a clean and organized structure for writing efficient and maintainable code.

nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

styled-components
Styled Components

Styled Components is a popular library for styling React components using CSS syntax. It allows you to write CSS in your JavaScript code, making it easier to create dynamic styles that are specific to each component.