Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henriquealbert/go-rest-mongodb
Go + Fiber + MongoDB
https://github.com/henriquealbert/go-rest-mongodb
Last synced: 18 days ago
JSON representation
Go + Fiber + MongoDB
- Host: GitHub
- URL: https://github.com/henriquealbert/go-rest-mongodb
- Owner: henriquealbert
- Created: 2023-08-23T19:02:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-23T19:28:55.000Z (about 1 year ago)
- Last Synced: 2024-10-09T09:31:03.222Z (28 days ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go + Fiber + MongoDB
Go
[Fiber](https://docs.gofiber.io/) - Express-inspired web framework
MongoDB - NoSQL databaseVery simple product API with Create and Read operations.
### How to run the app
```bash
# Clone this repository
$ git clone https://github.com/henriquealbert/go-rest-mongodb.git# Go into the repository
$ cd go-rest-mongodb# Install dependencies
$ go install# Run the app
$ go run cmd/main.go
```## API Routes
### Products
| Method | Route | Description |
| ------ | ----- | ----------- |
| GET | /api/v1/products | Get all products |
| POST | /api/v1/products | Add product |