GithubHelp home page GithubHelp logo

chatapi's Introduction

chat

This is an small chat app based on Flask microframework. It uses SqlAlchemy as ORM and SQlite as Database and pytest for unittesting

  1. Currently only supports one chat room
  2. It supports one session per browser, so to test the chat with different users you must start a session with different users on different browser.
  3. To register a user only is required an email and password
  4. If a user was already registered it must provide a valid password.
  5. To test the bot write /stock=stock_code as a command in the input box. The "StockBot" should answer with a stock quote in the case the stock_code is valid. In other case the Bot answer with a polite message.
  6. Only the last 50 messages are displayed ordered by date

Dependencies

  1. Be sure of having python3 and virualenv
  2. create virtual environment py -3 -m virtualenv venv
  3. active virtualenv (linux): source venv/bin/active (windows): source venv/Scripts/activate
  4. pip install -r requirements-dev.txt

Running on localhost

  1. python main.py -> The application will be running on localhost:5000

Tests

  1. pytest -> by default pytest will look for files with the sufix test_ into the tests folder.

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.