Coder Social home page Coder Social logo

160chars's Introduction

160chars

160chars is a basic Twitter implementation, more like a blog with 160 characters limitation per post.

Limitations:

  • No check for brute-force login attemps.
  • No account activation system, users can register and then login immediately.
  • No check for repeated forgot password requests. This can be used as a way to SPAM users.
  • Probably many more that I am not aware of.

Stack

Python, Flask, HTML, CSS and JavaScript with a bit of jQuery have been used. For front-end, I have included Bootstrap-Flask for Bootstrap 4 instead of Flask-Bootstrap which is based on Bootstrap 3.

Database

An SQLite database is configured for development purposes. As SQLAlchemy and Alembic are included via Flask-SQLALchemy and Flask-Migrate, using any other database supported by SQLAlchemy can be used immediately with small configuration edits.

Other Required Software

ElasticSearch: For search, ElasticSearch is implemented but as search code is generic, any other system can implemented instead of ElasticSearch.

Redis: Redis is used for task queues. Currently, only implementation is backup of user posts.

Installation

Clone the repo:

git clone https://github.com/aliayar/160chars

After creating a virtual environment, install the requirements:

pip install -r requirements.txt

Run the application:

flask run

Disclaimer

This attempt is nowhere near finished. It can only be used as a base and several shortcomings should be fixed before production. However if it should be used, I would recommend hide the auth pages due to spammable nature in the current implementation.

160chars's People

Contributors

aliayar avatar

Stargazers

 avatar

Watchers

 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.