https://github.com/mbannour/zio-http-mongodb
Simple REST Service written on ZIO HTTP and Mongodb.
https://github.com/mbannour/zio-http-mongodb
mongodb zio zio-http zio-json
Last synced: about 1 year ago
JSON representation
Simple REST Service written on ZIO HTTP and Mongodb.
- Host: GitHub
- URL: https://github.com/mbannour/zio-http-mongodb
- Owner: mbannour
- License: apache-2.0
- Created: 2023-05-24T20:36:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-25T10:16:33.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T16:43:34.859Z (about 1 year ago)
- Topics: mongodb, zio, zio-http, zio-json
- Language: Scala
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZIO-Http-MongoDB
This is a simple project in which I used ZIO HTTP to create a REST API with MongoDB as the database for storing and retrieving data.
In this project, I utilized the following technologies:
- **zio-MongoDB**
- **ZIO-JSON**
- **ZIO-HTTP**
# Development guide
Before starting this project, you should have MongoDB installed locally, or you can start a MongoDB container on your local machine.
In my case, I used a Docker instance for MongoDB. To start it, you can simply run the following command:
```docker run --name mongodb -p 27017:27017 -d mongo```
After that to start the whole project just run :
```sbt run ```
To run the test:
```sbt test ```