Skip to content

Latest commit

 

History

History
69 lines (54 loc) · 1.52 KB

README.md

File metadata and controls

69 lines (54 loc) · 1.52 KB

Remote-server

This is apart of remote server project. It's responsibility is to provide API for front-end project

Quickly

nohup go run main/main.go &

File Structure

.
|-- main
|   |-- api
|   |   -- api.go
|   |-- db
|   |   |-- dbconnection.go
|   |   -- server.go
|   |-- docs
|   |   -- docs.go
|   |-- go.mod
|   |-- go.sum
|   |-- main.go
|   -- web
|       -- handler.go
-- vendor
    |-- github.com
    |   -- swaggo
    -- vendor.json

Database using mysql

$ docker run --name remote-server -e MYSQL_ROOT_PASSWORD=123456 -d mysql --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci

Build go

go build -o remote-server ./main/main.go

Build docker-compose

./build-script.sh
  • GET /api/servers
  • POST /api/servers
  • POST /api/servers/:id_update
  • DELETE /api/servers/:id_delete
  • GET /api/websites
  • POST /api/websites
  • POST /api/websites/:id_update
  • DELETE /api/websites/:id_delete

Functionality of application

  • Show dashboard

  • CRUD for servers, can navigate to sshweb2 or CRT

  • CRUD for dashboards

Technical Support or Questions

If you have questions or need help integrating the product please "[email protected]" instead of opening an issue.