Welcome to the React and Node.js Blog Application! This project allows users to register, log in, add blogs, and view a list of blogs. The backend is implemented in Node.js with two database options: SQLite3 and PostgreSQL.
- User Registration and Login
- Blog Creation and Deletion
- Responsive UI
- Backend Support for SQLite3 and PostgreSQL
- React.js
- Node.js
- Express.js
- SQLite3 (or PostgreSQL)
- Multer for File Uploads
- Other dependencies (listed in package.json files)
-
Clone the repository:
git clone https://github.com/BhosaleAkshay8055/React_Node_Postgresql_Blog.git cd react-node-blogfor run backend
cd blog-backend npm install node serverauth.jsfor run frontend
cd frontend npm install npm start
-
Register a new user account.
-
Log in with the registered account.
-
Add a new blog with a title, content, and image.
-
View the list of blogs on the homepage.
-
Delete a blog by clicking on the delete button.
-
The main part has, added protected route functionality
- In the backend use the serverauth.js file. ( password hash logic, JWT token created, database: SQLite-3)
- Only the login user can add a blog and delete the blog.