Coder Social home page Coder Social logo

bityagi / fullstack-golang-nextjs-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.63 MB

Fullstack boilerplate that uses Golang API First development and NextJS Typescript

Dockerfile 4.77% Makefile 14.57% HTML 7.46% Go 19.90% JavaScript 2.81% CSS 2.31% TypeScript 48.19%
api-first golang fullstack-boilerplate nextjs-boilerplate openapi openapi-generator typescript-boilerplate

fullstack-golang-nextjs-template's Introduction

Fullstack Golang NextJs Boilerplate

This is a boilerplate for a fullstack application using Golang for the backend and NextJs for the frontend.

About the Backend

The backend uses Golang Chi Router and takes an OpenAPI Spec First approach to development.

Features

  • Golang
  • Zap Logging
  • Chi Router
  • OpenAPI Spec
  • Swagger UI
  • Redocly UI
  • Spectral Spec Linting
  • GolangCI-Lint
  • Testify Test

What is OpenAPI Spec First Approach?

It's where you design the specifications for the APIs before development and center your development process around the OpenApi Spec.

Meaning you start by writing the OpenAPI Spec and then generate the server stubs from the spec. This way you're not writing out all the controllers and models for the requests and responses manually.

Benefits of OpenAPI Spec First Approach

This approach is great for teams where the frontend and backend are developed in parallel. The frontend team can start developing the UI based on the spec while the backend team can start developing the backend based on the spec. It also enforces consistency across functions because you use the same spec for autogenerating code for testing, API gateways, postman collections, etc.

Checkout the resources below on this methodology:

https://blog.apideck.com/spec-driven-development-part-1

https://tanzu.vmware.com/developer/guides/api-first-development/

About the Frontend

Features

  • Typescript
  • NextJs
  • ESLint
  • TailwindCSS

fullstack-golang-nextjs-template's People

Contributors

moza88 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.