Welcome to the Full Stack Blog Application! This project is a full-stack web application that allows users to create and read blog posts. It's built with modern web technologies, ensuring a smooth and interactive user experience.
- User Authentication: Secure login and registration using JWT.
- Create and Read Posts: Users can write and publish blog posts and read posts from other users.
- Data Security: User passwords are securely hashed using Bcrypt.
- Frontend: React
- Backend: Node.js, Express
- Database: MongoDB
- Authentication: JWT
- Password Security: Bcrypt
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/ShikharSinghKushwaha/CODSOFT.git cd CODSOFT
-
Install dependencies:
cd server npm install cd ../client npm install
-
Set up environment variables: Create a
.env
file in thebackend
directory with the following content:MONGO_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret
-
Start the application:
# Start the backend server cd server node app.js # Start the frontend server cd ../client npm start
The application will be running on http://localhost:3000
.
-
Register and Log In:
- Visit
http://localhost:3000/register
to create an account. - Log in at
http://localhost:3000/login
.
- Visit
-
Create a Blog Post:
- Go to
Blog
to write a new blog post.
- Go to
-
View Blog Posts:
- To View your blog posts go to the
Posts
page.
- To View your blog posts go to the
-
View all Blogs
- Go to Home page to see all blogs
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m 'Add some feature'
- Push to your branch:
git push origin feature/your-feature-name
- Create a pull request.
This project is licensed under the MIT License.
- Shikhar Singh Kushwaha
- Email: [email protected]