Hapsa API written in Go
Installation
- Clone this repo
git clone https://github.com/hawyar/hapsa-api.git
-
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
- To build the executable
go build
- 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