https://github.com/armingodiz/gook-items-api
Items API for Gook
https://github.com/armingodiz/gook-items-api
golang mvc-architecture redis rest-api
Last synced: 2 months ago
JSON representation
Items API for Gook
- Host: GitHub
- URL: https://github.com/armingodiz/gook-items-api
- Owner: Armingodiz
- Created: 2021-02-11T12:37:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-21T12:28:34.000Z (over 4 years ago)
- Last Synced: 2025-03-28T23:34:03.269Z (3 months ago)
- Topics: golang, mvc-architecture, redis, rest-api
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gook-Items-API
This is one of the [Gook](https://github.com/Armingodiz/Gook) service that is for adding items and searching for them which follow mvc design pattern .
## Features
* Add item
* search for items
* get item with id## Dependencies
name | repo
------------- | -------------
gorilla-mux | https://github.com/gorilla/mux
redis | https://github.com/go-redis/redis
## Installation
First make sure you have installed all dependencies ,
make sure you have docker then pull redis image and connect your 8282 port to redis with `sudo docker run --name redis-usdb -p 8282:6379 -d redis`.
Then just simply clone this repository and start service with `go run main.go` (your service will be running on `127.0.0.1:3333`)## EndPoints
POST ==> /items (Create item)
GET ==> /items/{id} (Get item by id)
POST ==> /items/search (Search for users)## TODO
* Delete item
* Update item
* Sell item