Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/francescopaolol/couchbasesimpleapi
About Couchbase simple web service (docker version)
https://github.com/francescopaolol/couchbasesimpleapi
c-sharp couchbase docker-image n1ql rest-api shell
Last synced: about 21 hours ago
JSON representation
About Couchbase simple web service (docker version)
- Host: GitHub
- URL: https://github.com/francescopaolol/couchbasesimpleapi
- Owner: FrancescoPaoloL
- License: mit
- Created: 2022-07-16T14:47:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T20:57:36.000Z (about 1 year ago)
- Last Synced: 2024-12-22T13:18:12.022Z (about 2 months ago)
- Topics: c-sharp, couchbase, docker-image, n1ql, rest-api, shell
- Language: C#
- Homepage: http://e-learning-labs.s3-website-us-west-2.amazonaws.com/cb130cs-lab-instructions/index.html
- Size: 166 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Couchbase Simple Web Service
![C#](https://img.shields.io/badge/c%23-%23239120.svg?style=for-the-badge&logo=c-sharp&logoColor=white)
![.Net](https://img.shields.io/badge/.NET-5C2D91?style=for-the-badge&logo=.net&logoColor=white)
![Couchbase](https://img.shields.io/badge/Couchbase-EA2328?style=for-the-badge&logo=couchbase&logoColor=white)
![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white)
# Note
This simple project is based on this couchbase lab.## What I used
* Couchbase Client
* FluentAssertions
* Xunit## Preliminary Setup if you want use a docker image
NB: if you under Ubuntu, most probably, you have to use **sudo** for each docker command. We have used: **Docker version: 20.10.17** and **bash version: 4.4.20**.
1. Download and run couchbase docker image
```
docker run -d --name couchmusic -p 8091-8096:8091-8096 \
-p 11210-11211:11210-11211 \
registry.gitlab.com/couchbasesamples/couchbase-training:1.5
```3. Once container is created, take note its CONTAINER ID, in this example: *625ac7047fd3*
```
docker container lsCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
625ac7047fd3 registry.gitlab.com/couchbasesamples/couchbase-training:1.5 "/entrypoint.sh couc…" 8 seconds ago Up 6 seconds 0.0.0.0:8091-8096->8091-8096/tcp, :::8091-8096->8091-8096/tcp, 11207/tcp, 0.0.0.0:11210-11211->11210-11211/tcp, :::11210-11211->11210-11211/tcp, 18091-18096/tcp couchmusic
```3. Go to *CouchbaseSimpleAPI/src* folder and copy script folder into container
```
docker cp script/ 625ac7047fd3:/script/
```4. Enter in bash mode
```
docker exec -t -i 625ac7047fd3 /bin/bash
```5. Run the script (Please wait! 'cause it would take a while!)
```
./script/runme.sh
```7. Once it has terminated, press **ctrl-p and ctrl-q** and go to *couchbase web console main page*
```
http://localhost:8091/ui/index.html
```8. Insert "Administrator" + "password" and check if all is properly created.
![Dashboard](./img/dashboard.png)
Last thing: before doing anything, wait for all the buckets to be green and available!
## TO DO:
* Complete APIs
* Add more tests## License
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
## Connect with me