https://github.com/ahmadrosid/go-rest-api
Simple rest api with golang
https://github.com/ahmadrosid/go-rest-api
Last synced: 9 days ago
JSON representation
Simple rest api with golang
- Host: GitHub
- URL: https://github.com/ahmadrosid/go-rest-api
- Owner: ahmadrosid
- Created: 2020-02-02T17:41:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T02:47:14.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T11:43:38.339Z (3 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Rest Api
Simple REST API in golang using jsonapi format.
## How to install?
Clone to your local machine :
```bash
git clone [email protected]:ahmadrosid/go-rest-api.git
cd go-rest-api
go test
```Prepare database :
```bash
mysql -u root -psecret < data.sql
```Compile and run :
```
go build
./go-rest-api
```Test the endpoint on sample url [here](https://github.com/ahmadrosid/go-rest-api/blob/master/curls.md)