sample-go-gin-tailwind

command module
v0.0.0-...-db89ced Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 3 Imported by: 0

README

Contributors Forks Stargazers Issues MIT License


Logo

Sample Go App

This is a sample Go (golang) app that uses the Gin router, pq, and Gorm to do a basic search
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

Sample Go Gin Tailwind Screenshot

Built With

Go Packages

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • Go
  • PostgreSQL
# MAC OS X (after installing homebrew)
brew install golang
brew install postgresql

Installation

  1. Clone the sample-go-gin-tailwind repo
git clone https://github.com/FrancoRivera/sample-go-gin-tailwind.git && cd sample-go-gin-tailwind
  1. Install dependencies
go install
  1. Setup database
createuser -P -d -R -S --interactive
# username: houses
# password: chose_a_password
createdb houses -o houses
psql -U houses -f script.sql

Usage

Run the webserver with

PG_USER=db_username PG_PASSWORD=db_password go run main.go

Compile binaries for all architectures with

chmod +x go-executable-build.bash	# make script runnable
./go-executable-build.bash 	  	# run script

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Franco R - @francodalima - email

Project Link: https://github.com/FrancoRivera/sample-go-gin-tailwind

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL