GithubHelp home page GithubHelp logo

scottwedge / sockjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vtemelife/sockjs

0.0 0.0 0.0 15 KB

License: GNU Lesser General Public License v3.0

Makefile 4.66% Dockerfile 2.29% Shell 0.28% Python 92.77%

sockjs's Introduction

Vteme sockjs microservice

Dev stack:

  • asyncio
  • sockjs
  • rabbitmq
  • redis
  • docker

Clone repository

Install git on your system https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

git clone [email protected]:vtemelife/sockjs.git
cd sockjs

Run using docker

Install docker on your system https://runnable.com/docker/getting-started/

Activate environment:

cp envsets/docker_dev.env .docker.env

Build and Run

docker-compose build
docker-compose up

Run without docker

Install required services (OSX)

brew install pyenv
brew install postgresql
brew install rabbitmq

brew services
brew services start postgresql
brew services start rabbitmq

Install required services (Ubuntu)

apt...

Setup pyenv

Please, execute these commands to activate your pyenv (for bash just replace .zshrc with .bashrc)

echo 'eval "$(pyenv init -)"' >> ~/.zshrc
eval "$(pyenv init -)"

Install and activate virtual environment

pyenv install 3.7.4
pyenv shell 3.7.4

python -mvenv env
source env/bin/activate

Activate environment:

cp envsets/local_dev.env .local.env
source .local.env

Install project requirements:

make install

Start dev server:

make start

Run tests:

Run all tests:

make test

Run one test:

pytest file/path/filename.py::ClassName::test_method

sockjs's People

Contributors

vsdudakov avatar scottwedge avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.