Skip to content

controk-sys/websocket-server

Repository files navigation

Controk Web Socket

travis-badge codecov-badge codeclimate-badge license-badge

dependencies-badge dev-dependencies-badge docker

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Note: This is the WebSocket part of the Controk system and may have some features faked for demonstrative purposes. Click here for the fully working system.

Prerequisites

These instructions will build the environment to run commands on the project.

Installing

Manual

  • Create .env file, based on .env.example, and set your environment as you wish;
  • npm install;
  • npm start.

Based on "docker"

  • The next command will give you a running server. Needing anything specific, change in docker-compose.yml;
  • docker-compose build;
  • docker-compose up.

The server must be running at [http://localhost:8888/].

Running the tests

Manual

  • Create a ".env" file base on ".env.example" in the project's root;
  • npm test.

Based on "docker"

  • Open the docker-compose.yml file with your favorite text editor and change the socket service command to npm test;
  • docker-compose up.

Deployment

Clone the project:

git clone https://github.com/jourdanrodrigues/controk-socket

Build the project with docker compose:

docker-compose build

Raise the project:

docker-compose up

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of [contributors][contributors] who participated in this project.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published