Skip to content

Latest commit

 

History

History
50 lines (44 loc) · 762 Bytes

README.md

File metadata and controls

50 lines (44 loc) · 762 Bytes

clout-services-head

Requirement

  • NGinx

Installation

Clone the repository

git clone [email protected]:clout-stack/clout-services-head.git
cd clout-services-head

Install dependencies

npm install

Starting the service

node .

Endpoints

  • /list (list services)
  • /publish (publish service)
  • /unpublish (unpublish service)

Service Model

{
	id: 'service id',
	user_id: 'user id',
	name: 'service name',
	archive: 'archive path',
	hosts: 'array of hosts',
	status: ['active', 'in-active', 'error'],
	server_id: 'server service is running on'
}

Server Model

{
	id: 'server id',
	name: 'server name'
	host: 'server hostname or ip',
	port: 'server port',
	lastSeen: 'date of last seen'
}