Giter Site home page Giter Site logo

ttsoares / dialogs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 263 KB

https://www.frontendmentor.io/challenges/interactive-comments-section-iG1RugEG9

Home Page: https://interactive-comments-drab.vercel.app

License: GNU General Public License v3.0

CSS 0.40% JavaScript 99.60%

dialogs's Introduction

Frontend Mentor - Interactive comments section solution

This is a solution to the Interactive comments section challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Create, Read, Update, and Delete comments and replies
  • Upvote and downvote comments
  • Bonus: If you're building a purely front-end project, use localStorage to save the current state in the browser that persists when the browser is refreshed.
  • Bonus: Instead of using the createdAt strings from the data.json file, try using timestamps and dynamically track the time since the comment or reply was posted.

Screenshot

Links

Built with

What I learned

Started the process of building the full CRUD system with Prisma and PostgreSQL

model User {
  id          String   @id @default(uuid())
  username    String   @unique
  coments     Coment[]
  avatar_png  Bytes
  avatar_webp Bytes
  Reply       Reply[]
}

model Coment {
  id        String   @id @default(uuid())
  content   String   @db.Text
  owner     User     @relation(fields: [ownerId], references: [id])
  ownerId   String
  createdAt DateTime @default(now())
  score     Int
  comenter  String
  replyes   Reply[]
}

model Reply {
  id         String   @id @default(uuid())
  content    String   @db.Text
  coment     Coment   @relation(fields: [comentId], references: [id])
  comentId   String
  createdAt  DateTime @default(now())
  score      Int
  replyingTo String
  comenter   User     @relation(fields: [comenterId], references: [id])
  comenterId String
}

Continued development

Will eventually finish the backed system to achieve a fullstack CRUD system.

Useful resources

  • Prisma - Deploy to Vercel rally easy...

Author

Acknowledgments

dialogs's People

Contributors

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