https://github.com/mustafadikyar/gofiber-mongodb-rest-api
GoFiber framework'ü ve MongoDB veritabanını kullanarak geliştirilmiş örnek bir RESTful API uygulamasıdır.
https://github.com/mustafadikyar/gofiber-mongodb-rest-api
fiber golang mongodb rest-api
Last synced: about 2 months ago
JSON representation
GoFiber framework'ü ve MongoDB veritabanını kullanarak geliştirilmiş örnek bir RESTful API uygulamasıdır.
- Host: GitHub
- URL: https://github.com/mustafadikyar/gofiber-mongodb-rest-api
- Owner: mustafadikyar
- Created: 2023-09-30T22:38:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-30T23:02:47.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T17:47:27.932Z (over 1 year ago)
- Topics: fiber, golang, mongodb, rest-api
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gofiber-mongodb-rest-api
GoMongoDB API, Go dilinde geliştirilmiş ve MongoDB veritabanını kullanan basit bir API projesidir.
Fiber framework'ü ile oluşturulmuş bu proje, veritabanı işlemleri için MongoDB'yi kullanır ve kullanıcılara ürünler oluşturma, görüntüleme ve silme gibi temel CRUD (Create, Read, Update, Delete) operasyonlarını gerçekleştirebilecekleri bir RESTful API sunar.
## Kurulum
1. **MongoDB Kurulumu:** Öncelikle, projeyi çalıştırmadan önce MongoDB veritabanını kurmanız ve çalışır durumda olduğundan emin olmanız gerekmektedir.
2. **Proje Kurulumu:**
```bash
git clone https://github.com/mustafadikyar/gofiber-mongodb-rest-api.git
cd gofiber-mongodb-rest-api
go run main.go
```
Proje bu adımlarla yerel bir sunucuda çalıştırılacaktır.
## API Endpoints
* *Ürün Oluşturma:*
```http
POST
/api/product
```
* *Tüm Ürünleri Görüntüleme:*
```http
GET
/api/products
```
* *Ürün Silme:*
```http
DELETE
/api/product/{id}
```