Code Monkey home page Code Monkey logo

chat's Introduction

Chat

An uncreatively named chat website that I wrote when I was starting out with javascript

DO NOT USE IT FOR ANYTHING OTHER THAN STUDYING THE CODE It is insecure, it will not be updated and depends on a lot of vulnerable packages.

Applications and libraries

This application uses Node.js with Express.js to run the server. The database is a PostrgeSQL instance.

Skills that I obtained from this project

  • Basic server structure, POST and GET requests to implement CRUD
  • Structuring SQL schemas and querying and updating data in them
  • XSS and CSRF
  • WebSockets

chat's People

Contributors

micnekr avatar

Watchers

James Cloos avatar  avatar

chat's Issues

TODO

  • login rememberMe redirect check on server
  • cluster and solve memory problems
  • tests
  • end to end encryption
  • tags for messages
  • photos, videos
  • submit a bug page
  • fix protocol
  • fix signup, sql/create chat to use transactions
  • ratelimit messages
  • test if it is faster to send all messages or n last messages
  • add a button "show more messages"
  • change data format for getChatAndUserData
  • add messages about joining and leaving the chat
  • cache
  • user profiles
  • user icons
  • change all boolean queries to be sql and merge into transaction with other statements if possible
  • change password
  • look at security and node practices
  • optimise psql get
  • user profiles in the menu
  • use hbs to choose between buttons in chatinfo and optimise further
  • check time of request processing
  • use queries, not cookies
  • change menu to post and check for errors

!!!!!!!!!!!!!!!IMPORTANT!!!!!!!!!!!!!!!!!!!!!!!!

  • move xss protection to client side

  • xss in search terms

  • serverside xss

  • disable suggestions in chat textarea

  • log errors not caught by express

  • ufw enable

  • signup search for names which are used

  • app.set trust proxy 1

  • httponly for cookies

  • long term login ratelimit

  • snyk

  • LOOK AT RELEASE TODOS

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.