Skip to content

jsenon/cloudtab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloudtab

Simple CMDB Web Server in GO with mongodb backend

Prerequisite

You need to have:

  • Go 1.8
  • Go Environment properly set
  • Mongodb

Compilation

git clone https://github.com/jsenon/websocket.git
go build -o cloudtab

Start

docker run --name cloudtab-mongo -v /my/own/datadir:/data/db -d -p 27017:27017 mongo:latest
./cloudtab 

Access

Access through favorite web browser on http://YOURIP:YOURPORT ie http://127.0.0.1:9010

Access docker

docker exec -it cloudtab-mongo mongo admin

API

POST API One Server

curl -X POST  -H "Content-Type: application/json"  -d @body_example.json http://localhost:9010/api/servers

POST API Multiple Servers

curl -X POST  -H "Content-Type: application/json"  -d @body_example.json http://localhost:9010/api/servers/import

GET API ALL

curl  -H "Content-Type: application/json"  http://localhost:9010/api/servers

GET API Specific ID

curl  -H "Content-Type: application/json"  http://localhost:9010/api/servers/YOURID

DELETE API

curl -X DELETE -H "Content-Type: application/json"  http://localhost:9010/api/servers/YOURID

UPDATE API

curl -X UPDATE -H  "Content-Type: application/json" -d @body_example_update.json http://localhost:9010/api/servers/YOURID

ScreenShot

Main Alt text

Full Table View Alt text

API Swagger Doc Alt text

ToDo

  • API
  • Package for struct JSON Server
  • Web part to view details
  • Web part Update
  • Web part add network func
  • Web part delete network func
  • API part Update
  • Import
  • Detail Select Column to show
  • Unique fields in db
  • Store multiple networks per asset
  • Authentication
  • Jwt implementation
  • Add date insertion asset
  • API Doc
  • Build Docker App
  • Move to microservice (dockerize cloudtab and add redis)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published