GithubHelp home page GithubHelp logo

lazymeadow / best-ever-chat Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 6.98 MB

A super awesome chat server and client webpage

Home Page: https://lazymeadow.github.io/best-ever-chat/

Python 71.39% JavaScript 18.71% HTML 2.74% Less 4.22% Kotlin 2.94%

best-ever-chat's Introduction

Best Chat Ever

It's, like, really good, oh my gosh.

Setup:

Install:

There are some dependencies that are necessary to install. There might be more. Let me know.

  1. You need to have python2.7, mysql, and npm.

On Linux:

sudo apt-get install build-essential python-dev libmysqlclient-dev python-mysqldb npm

On Mac:

brew install mysql npm openssl

Then follow the instructions here to get pip (brew will also give you this url if you type brew install pip):

https://pip.readthedocs.io/en/stable/installing/

On Windows:

Just use PyCharm. It will work.

  1. npm install -g less less-plugin-clean-css
  2. pip3 install -r install/requirements.txt

If this doesn't work, try sudo. Some of the packages are dumb.

If this doesn't work on Mac, try:

pip install --ignore-installed -r install/pip-install

You can also just use PyCharm and it will install them for you.

On Windows:

MySQL-Python will fail, it doesn't really matter what you do. You need to install it manually.

Download the wheel here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python

If you're using virtualenv, make sure you run path_to_venv\Scripts\activate, then install it globally with pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl

Database:

  1. Setup a local MySql database.
  2. Import install/bestChat.sql to get the schema and tables. (If you've already been working on it, this will wipe your tables, fyi.)
  3. Make a user 'bestChat' with the password in chat.cfg and (at least) the following permissions to the bestchat schema: DELETE, EXECUTE, INSERT, SELECT, SHOW, VIEW, UPDATE

To run:

Places to edit:

  1. Set the client to use your server url (static/js/client/BestEvarChatClient.js line 11)

Actually running:

  1. npm build
  2. python tornado_chat.py

cat images: http://www.iconka.com

twemoji client parsing: https://github.com/twitter/twemoji

joypixels emoji assets: https://www.joypixels.com/

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.