Giter VIP home page Giter VIP logo

blogx's Introduction

Blogx

The Blogx Website has been built with the following tech stack:

Development

Setup Procedure

  • Docker

    OR

  • Copy .env.example to .env

  • Get a postgres db from https://neon.tech/ (or any other provider)

  • Replace the DATABASE_URL in .env

  • Run npx prisma migrate dev to setup schema

Steps to run locally

With Docker

  • docker compose up

Without Docker

  • npm install
  • npm run db:seed to seed the database
  • npm run dev

--- Go to http://localhost:3000/login for signup and signin --- http://localhost:3000/admin/dashboard to access the dashboard

Read contributing guidelines to start making contributions

blogx's People

Contributors

safvan-tsy avatar

Watchers

 avatar

blogx's Issues

Unable to properly edit from the editor

Describe issue:

  • Try to edit any blog from the dashboard (/admin/dashboard/blogs)
  • suppose we are editing at first paragraph , after entring one charecter the text cursor goes to the end of the editor content.

More info:
Probably we need to debug here .

Open issue

We appreciate your contribution to this project! Any form of engagement is welcome, including but not limiting to

  • feature request
  • documentation
  • bug report
  • roadmap suggestion
  • ...and so on!

Feature request: One click publish from dashboard blogs table

dashboard

Go to /admin/dashboard/blogs. If a post is not published that is status is 'draft', we want an icon near that status in table which can trigger update the post status to published .

Tasks

Backend
Create a PATCH endpoint /api/admin/post/[id] which should update the status of post to 'published'

Frontend
Add a button with icon near status if it is 'draft' , icon should be from 'react-icons/fa'. onclick it should call the patch endpoint with status:'pubished' . and then refetch the data in table list view

persist the selected theme

Current behavior
Currently by default we serve the system theme. user can switch between dark and cupcake theme .

Problem
Suppose the users system default theme is dark and switched it to cupcake in our website but if reloaded the website it switch back to the default dark theme.
Screencast from 28-04-24 08:20:46 PM IST.webm

Expected solution
Users choice should be stored.

We are using daisyui cupcake , dark themes as light and dark theme for out website.
I suggest using theme-change, so user can switch themes and save selected theme in local storage.

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.