Complete Golang and Nuxt (VueJS) boilerplate for your project with backend API, frontend, tests and CI/CD pipelines.

gadelkareem

Waleed Gadelkareem

Posted on July 28, 2020

Complete Golang and Nuxt (VueJS) boilerplate for your project with backend API, frontend, tests and CI/CD pipelines.

Skeleton

pipeline status

A complete Golang and Nuxt boilerplate for your project with backend API, frontend, tests and CI/CD pipelines.

Features

Development

There are 2 methods to run Skeleton locally

  • Install required libs locally on OSX:
./init.sh init
Enter fullscreen mode Exit fullscreen mode

Then Run the frontend and backend servers:

./init.sh
Enter fullscreen mode Exit fullscreen mode

-- OR --

  • Run the full stack on Docker: Note that yarn install might take some time.
docker-compose up
# run tests
docker exec -it skeleton_backend_1 /bin/bash -c "go test -v ./... -count=1 | sort -u"
Enter fullscreen mode Exit fullscreen mode

Generate Nuxt static files

./build.sh
Enter fullscreen mode Exit fullscreen mode

Deploy to Heroku

Services

Mail service

Skeleton works in development with MailHog in docker which you can access via http://localhost:8025/. To use MailTrap instead, change ./src/backend/conf/app.dev.ini SMTP config to match MailTrap settings.

Tests

Backend

cd src/backend
go test -v ./... -count=1 | sort -u
#extra
go test -v backend/controllers -count=1 -debug=7 -run  TestUserController_VerifyMobile
Enter fullscreen mode Exit fullscreen mode

Frontend

cd src/frontend
yarn test
Enter fullscreen mode Exit fullscreen mode
πŸ’– πŸ’ͺ πŸ™… 🚩
gadelkareem
Waleed Gadelkareem

Posted on July 28, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related