Simple CMDB Web Server in GO with mongodb backend
You need to have:
- Go 1.8
- Go Environment properly set
- Mongodb
git clone https://github.com/jsenon/websocket.git
go build -o cloudtab
docker run --name cloudtab-mongo -v /my/own/datadir:/data/db -d -p 27017:27017 mongo:latest
./cloudtab
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
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
- 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)