Code Monkey home page Code Monkey logo

chatroomjs's Introduction

chatroomjs

Tools and libraries

Docker

  • Docker : using container technology to share the same development environment with the team
  • Docker-compose : define a multi-container application in a single file (Sure, we're going to use multi-container)

Application's Stack

  • Redis : a data structure server which has pub/sub feature
  • MongoDB : as the primary storage
  • Nodejs : just nodejs
    • Express : web framework for Node.js
    • mongoose : mongodb object modeling for node.js
    • socket.io : real-time bidirectional event-based communication.
    • noderedis : redis client

Setting up

This project use Docker and Compose to orchestrate the application's infrastructure and Git to manage the code. So, you have to install all of those first. You can choose any git client as you prefer. npm is also needed in order to manage nodejs dependencies.

After you have downloaded all of the tools, it's time to begin.

First, you have to clone this repo into your computer.

   $ cd path/to/your/workspace
   $ git clone https://github.com/iboss-ptk/chatroomjs.git

Then install the dependencies.

   $ cd chatroomjs
   $ sudo npm install -g gulp && sudo npm install -g bower
   $ sudo npm install
   $ bower install

We might need to run docker command on the host os because it's easier to manage. If you're not on Linux, you need to run the following commands.

   $ boot2docker init # only for the first time
   $ boot2docker up
   $ boot2docker shellinit

Then export DOCKER_HOST, DOCKER_CERT_PATH and DOCKER_TLS_VERIFY as it's shown after boot2docker up.

And run this command from the root directory of this repo.

   $ docker-compose up

Normally, boot2docker's ip is 192.168.59.103 so the application will be on http://192.168.59.103:8888. If this doesn't show anything, try running boot2docker ip to see your vm's ip. If you're on Linux, just http://localhost:8888.

Every component should work fine at this point. If you have any issue, feel free to ask me. If you're using windows, I can't help you much so I'd like to suggest you to use any Linux distro or OSX.

Additional resources

chatroomjs's People

Contributors

froztic avatar iboss-ptk avatar phizaz avatar tutorgaming avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.