Skip to content

rdhawladar/golang-vercel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-vercel

Golang basic template and deployment with vercel serverless environment.

What Is Vercel: ​Vercel is a cloud platform for static sites and Serverless Functions that fits perfectly with workflow. It enables developers to host websites and web services that deploy instantly, scale automatically, and requires no supervision, all with no configuration.

Features

  • Golang template to start new project
  • Deploy in a serverless platform and share in one second
  • Implementation of Swagger document
  • Example of Gin Gonic Framework

Project Structure

.
|-- api                 # This is the default folder for vercel as entrypoint 
|-- app                 # Contain services and features like handler, database etc
|-- docs                # Contain swagger files
|-- readme.md           # Explains project installation and other informations

Tools and Technology

Installation

  • Install node and npm using brew install node
  • Run npm i -g vercel and check if vercel installed properly by vercel --version
  • Run vercel dev for development server
  • Run vercel --prod for production server

Vercel Production URL: https://golang-vercel.vercel.app/