A full-stack blog application built with the MERN stack (MongoDB, Express.js, React.js, Node.js). The project includes CRUD operations, user authentication,Form validations, Database for storing data, and JSON Web Token (JWT) validations. Created for Coding Factory Final Project.
- User registration and login
- Form validation with notifications
- MongoDB Database for storing data
- CRUD operations for blog posts
- JWT-based authentication
- Responsive design
- Clone the repository:
git clone https://github.com/jordanpapaditsas/jrpg-blog.git- Navigate to the clone project directory:
cd jrpg-blog-
Install Node.js and yarn (donwload and install from https://nodejs.org/en)
-
Install Project Dependencies
- yarn install
- yarn add nodemon
- yarn add cors
- yarn add mongoose
- yarn add bcryptjs
- yarn add jsonwebtoken
- yarn add cookie-parser
- yarn add dotenv- Build the project
- Open 2 terminals
- cd client in first terminal
- yarn start (starts the project)
- cd api in second terminal
- nodemon index.js (to run backend api for data)- /post/:id (GET, POST, PUT, DELETE): CRUD operations for blog posts.
- /edit/:id (PUT) operation.
- /register (POST): Register a new user.
- /login (POST): Authenticate and log in a user.
- /logout (POST): Logs out the current user.
- /create (POST): Create a post.










