hapsa-api

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

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 8 Imported by: 0

README

Hapsa API written in Go

Installation

  1. Clone this repo
git clone https://github.com/hawyar/hapsa-api.git
  1. Rename .env.example to .env

    Please make sure .env is still included in your .gitignore. Never share or commit it.

    Make sure the env variables is set accordingly

Run

Start the server

go run main.go

Build

  1. To build the executable
go build
  1. Run build
./hapsa-api
Live reloading

After some time it gets annoying to always run go run main.go to reload the server.

This project uses air to provide live reloading. Save the file and see the changes instantly!

There is a .air.toml that contains default configurations. You can add or exclude dir or files being watched by air. Update .air.toml accordingly

Live reloading is already set up. You DON'T need to do anything.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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