Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tr1sm0s1n/gin-mongo-api

Gin API for CRUD operations in MongoDB.
https://github.com/tr1sm0s1n/gin-mongo-api

api crud docker docker-compose gin gin-gonic go golang mongodb rest-api

Last synced: 13 days ago
JSON representation

Gin API for CRUD operations in MongoDB.

Awesome Lists containing this project

README

        

# Gin-Mongo-API

Gin API for CRUD operations in MongoDB.

## 🛠 Built With

[![Go Badge](https://img.shields.io/badge/Go-00ADD8?logo=go&logoColor=fff&style=for-the-badge)](https://go.dev/)
[![Gin Badge](https://img.shields.io/badge/Gin-008ECF?logo=gin&logoColor=fff&style=for-the-badge)](https://gin-gonic.com/)
[![MongoDB Badge](https://img.shields.io/badge/MongoDB-47A248?logo=mongodb&logoColor=fff&style=for-the-badge)](https://www.mongodb.com/)
[![Docker Badge](https://img.shields.io/badge/Docker-2496ED?logo=docker&logoColor=fff&style=for-the-badge)](https://www.docker.com/)

## ⚙️ Run Locally

Clone the project

```bash
git clone https://github.com/tr1sm0s1n/gin-mongo-api.git
cd gin-mongo-api
```

Start the database

```bash
make up
```

View the database (optional)

```bash
make enter
```

Run the application

```bash
make run
```

For live reload, install air (optional)

```bash
make air
```

Run the application in watch mode

```bash
make air
```

## 📜 License

Click [here](./LICENSE.md).

## 🎗️ Contributing

Click [here](./CONTRIBUTING.md).

## ⚖️ Code of Conduct

Click [here](./CODE_OF_CONDUCT.md).