Giter Club home page Giter Club logo

interactive_comment_section's Introduction

Interactive comment section

An implementation of a comment section design provided by frontendmentor.

Technologies

  1. Built with node.js.
  2. Hosted on Hostinger. The project uses the KVM1 hosting solution, where the code is deployed using pm2. MySql is used as the database technology.
  3. The design used is the interactive-comments-section challenge from frontendmentor.
  4. I used sass and Google Fonts for styling.

Left to implement

  • The upvotes functionality.
  • The replies at the moment are normal comments with a span containing @[username] referencing the replied to comment. Ideally they would be placed under the comment that is being replied to and indented a bit.
  • On my phone the website does not load correctly. svg icons don't get loaded and logging in causes the css to not get loaded. I could not replicate this on my friend's iphone or on https://appetize.io/.
  • Handling niche situations such as: Deleting a comment that has replies pointing to it.
  • Validate inputs server side. Currently they're only validated client-side. At the least guard against SQL injection.
  • Refactoring the code to use a modern frontend framework such as React for client-side rendering instead of rendering server-side with handlebars.
  • Refactoring the backend-side to use a framework such as express or fastify instead of the http node module.

Running the code

Run the command node server.js in the root of this repo to start the server.

Database setup

Platform: Windows

I'm using MySQL Community Server - GPL, version 8.0.36.

server.js will assume this computer has a MySql server running for user = "root" with password = "qweasd123" on localhost:3306.

These details can be changed in db_config.json.

Installing MySql

If you're on windows, download the installer from: https://dev.mysql.com/downloads/installer/ and follow the instructions provided.

interactive_comment_section's People

Contributors

andreitih 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.