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.
- 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
.
|-- 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
- Install node and npm using
brew install node
- Run
npm i -g vercel
and check if vercel installed properly byvercel --version
- Run
vercel dev
for development server - Run
vercel --prod
for production server
Vercel Production URL: https://golang-vercel.vercel.app/