GithubHelp home page GithubHelp logo

royaals / writr-blogs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.41 MB

Writr is a user-friendly blog posting application that simplifies content creation and publishing.

Home Page: https://writr.devprojects.world

License: MIT License

TypeScript 93.39% JavaScript 3.64% HTML 0.49% CSS 2.48%
cloudflare hono react typescript zod shadcn-ui postgresql prisma

writr-blogs's Introduction

Writr-Blog Application

This is a user-friendly blog posting application that simplifies content creation and publishing. The application has secure user authentication, an intuitive interface, and a responsive layout. It is built using Hono, Cloudflare Workers, PostgreSQL, Prisma ORM, React.js, TypeScript, Tailwind CSS, .

Features

  • User Authentication
  • Intuitive Interface
  • Responsive Layout

Installation Steps

  1. Clone the repository:

    git clone https://github.com/royaals/writr-blogs.git
  2. Navigate to the frontend directory and install the dependencies:

    cd frontend
    npm install
  3. Navigate to the backend directory and install the dependencies:

    cd backend
    npm install
    
  4. Rename .env.example to .env and wrangler.toml.example to wrangler.toml in the backend folder and update the following values:

    • DATABASE_URL: This should be your PostgreSQL database URL. For example, if you're using Docker, it would look something like this: postgresql://postgres:mysecretpassword@localhost:5432/postgres. If you're using a PostgreSQL provider like Neon.tech, Supabase, Aiven, etc., use the URL they provide.
  5. Edit wrangler.toml with the correct Prisma Accelerate connection pool URL and jwt-secret.

  6. Run Prisma migrations. This command will apply the database schema changes:

    npx prisma migrate dev --name init
  7. Generate the Prisma client. This command will generate the Prisma client code:

    npx prisma generate
  8. Rename .env.example to .env and update the following values:

    • VITE_REACT_APP_BACKEND_URL: your-backend-url
  9. Start the backend server:

    cd backend
    npm run dev
  10. Start the frontend server:

    cd frontend
    npm run dev

writr-blogs's People

Contributors

royaals avatar

Stargazers

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