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, .
- User Authentication
- Intuitive Interface
- Responsive Layout
-
Clone the repository:
git clone https://github.com/royaals/writr-blogs.git
-
Navigate to the frontend directory and install the dependencies:
cd frontend npm install -
Navigate to the backend directory and install the dependencies:
cd backend npm install -
Rename
.env.exampleto.envandwrangler.toml.exampletowrangler.tomlin 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.
-
Edit
wrangler.tomlwith the correct Prisma Accelerate connection pool URL and jwt-secret. -
Run Prisma migrations. This command will apply the database schema changes:
npx prisma migrate dev --name init
-
Generate the Prisma client. This command will generate the Prisma client code:
npx prisma generate
-
Rename
.env.exampleto.envand update the following values:VITE_REACT_APP_BACKEND_URL:your-backend-url
-
Start the backend server:
cd backend npm run dev -
Start the frontend server:
cd frontend npm run dev