Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadrosid/go-rest-api
Simple rest api with golang
https://github.com/ahmadrosid/go-rest-api
Last synced: 23 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T02:47:14.000Z (over 2 years ago)
- Last Synced: 2024-10-16T18:07:48.681Z (2 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- 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)