This project aims to create a blogging platform using modern technologies for both frontend and backend. It utilizes a robust stack including React for the frontend, Cloudflare Workers for the backend, and a combination of other tools for validation, ORM, database, and authentication.
-
Frontend:
-
React: A popular JavaScript library for building user interfaces.
-
Zod: A TypeScript-first schema declaration and validation library.
-
TypeScript: A statically typed superset of JavaScript that compiles to plain JavaScript.
-
Styling:
-
Tailwind CSS: A utility-first CSS framework that provides low-level utility classes to build custom designs.
-
Aceternity UI: A collection of reusable UI components built with Tailwind CSS, designed for rapid development and consistent styling.
-
-
Backend:
- Cloudflare Workers: A serverless execution environment that allows you to create lightweight, scalable backend applications.
- Prisma: A modern database toolkit for TypeScript and Node.js that simplifies database access.
- Postgres: A powerful, open-source relational database system.
- JWT (JSON Web Tokens): A compact, URL-safe means of representing claims to be transferred between two parties securely.
- Using WebCrypto for hashing passsword before storing in the database.
- Navigate to the
frontend
directory. - Run
npm install
to install dependencies. - Run
npm start
to start the development server. - Access the development server at
http://localhost:3000
.
- Navigate to the
backend
directory. - Run
npm install
to install dependencies. - Set up your Postgres database and configure the connection in
prisma/schema.prisma
. - Run
npx prisma migrate dev
to apply migrations and generate Prisma client. - Run
npm run dev
to start the backend server. - Access the backend server at
http://localhost:8080
.
For authentication, this project utilizes JSON Web Tokens (JWT) along with a cookies-based approach.
- Upon successful login, a JWT token is generated server-side and sent to the client.
- The JWT token is then stored in an HTTP-only cookie for enhanced security.
- Subsequent requests from the client include this token in the cookie header.
- The server validates the JWT token to authenticate the user for protected routes.
Users can bookmark their favorite posts for quick access.
Users can search for posts based on keywords or tags.
Users can delete bookmarks with a confirmation model to prevent accidental deletion.
Working on to supports image uploads, allowing users to enhance their blog posts with images. (Will add it after I get my credit card)
Added jodit editor .
- Abhi-hertz - @93651229+AE-Hertz
- Akshit lakhera - @akshitlakhera14
- Ananya Gupta - @145869907+ananyag309
- Aryan Ramesh Jain - @138214350+jainaryan04
- Bhumika - @sharmabhmi
- Edasgh - @edas25564
- MIGHTY1o1 - @shubhagarwalcse
- Nikhil Saxena - @91839763+Cleveridiot07
- Pavan Shanmukha Madhav Gunda - @pavanshanmukhmadhav
- Rahul Kumar - @rahulbarnwalonlyu2
- Risheendra183 - @yannamrishee
- Saksham Saraf - @122025299+sakshamsaraf23
- Samyak Aditya - @91079592+samyak-aditya
- Shariq - @shariqsd2003
- Shubham Pandey - @69081168+heizshubham
- Siddhi Sahu - @himanisahu739
- Umesh Kumar - @149981630+UmeshKumar0143
- UmeshKumar0143 - @umeshkumar153654
- ayushrana83 - @168258223+ayushrana83
- dependabot - @49699333+dependabot[bot]
- dev129 - @76431221+dev129
- iamDyeus - @dyeusyt
- kartikeyyy - @kartikeykvk369
- khaulanauman - @khaulanauman
- sezallagwal - @sezal1470
- smog-root - @machha.shashank
- tarunkumar2005 - @tarunkumar6258278
- tejasbenibagde - @124677750+tejasbenibagde