Giter Site home page Giter Site logo

plcharriere / chattin-client Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 2.78 MB

Work in progress self-hosted real-time communication platform inspired from Discord made with Vue 3.

License: MIT License

JavaScript 0.06% HTML 0.51% Vue 89.58% TypeScript 6.67% SCSS 2.66% Shell 0.10% Dockerfile 0.41%

chattin-client's Introduction

Chattin

Chattin is a work in progress self-hosted real-time communication platform heavily inspired from Discord.

This is the client repository. Check out the server repository that goes with the client.

Screenshot

Chattin Client Screenshot

Project setup

Install node modules with :

npm install

Copy and configure your environment file :

cp .env.example .env

Copy and configure your vue configuration file :

cp vue.config.js.example vue.config.js

How to deploy

Run in development mode

Run with Vue in development mode with :

npm run serve

Build to run in production

Build the app for production with :

npm run build

And host built content in dist/ with a web server.

Run in a Docker container

Build the Docker image with :

docker build . -t chattin-client

Then you can create and run a container with :

docker run -d --name chattin-client -p 80:80 chattin-client

Run in a Docker container with Docker-Compose

First, you need to build the Docker image with :

docker build . -t chattin-client

Then write in a docker-compose.yml file :

version: "3.6"

services:
  chattin-client:
    image: chattin-client
    ports:
      - 80:80

If you have built the server Docker image, you can add it as well :

version: "3.6"

services:
  chattin-client:
    image: chattin-client
    ports:
      - 80:80

  chattin-server:
    image: chattin-server
    volumes:
      - /path/to/cert:/chattin-server/ssl/cert
      - /path/to/key:/chattin-server/ssl/key
    environment:
      - ADDRESS=:2727
      - SSL_CERT=/chattin-server/ssl/cert
      - SSL_KEY=/chattin-server/ssl/key
      - POSTGRES_ADDRESS=postgres:5432
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=ch4ng3_m3
      - POSTGRES_DATABASE=chattin
    ports:
      - 2727:2727
    depends_on:
      - postgres

  postgres:
    image: postgres
    volumes:
      - ./postgres/data:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=ch4ng3_m3
      - POSTGRES_DB=chattin

After configuring your docker-compose.yml file, create and start containers with :

docker-compose up -d

chattin-client's People

Contributors

plcharriere avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.