Welcome to Star Blog! This is a simple blogging platform built with Node.js and Express. Users can create an account, write blog posts, and interact with other users by commenting on their posts. The application is fully responsive and works on all devices.
- User registration and authentication
- Create, edit, and delete blog posts
- Comment on blog posts
- Search functionality
- Responsive design
- Clone the repository:
git clone https://github.com/SGSTAR01/star-blog.git
- Install dependencies:
npm install
oryarn install
orpnpm install
- Set up the database: Set up a MongoDB database and add the connection string to the
.env
file - Configure environment variables: Create a
.env
file in the root directory and add the following variables:PORT
- The port number for the serverMONGODB_URI
- The connection string for the MongoDB databaseJWT_SECRET
- A secret key for generating JSON Web TokensJWT_EXPIRES_IN
- The expiration time for the JWT
- Start the server:
npm start
- Open your browser and navigate to
http://localhost:3000
- Sign up for a new account or log in with your existing credentials
- Explore the blog, create new posts, and interact with other users
Contributions are welcome! If you'd like to contribute to Star Blog, please follow these steps:
- 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 the branch:
git push origin feature/your-feature-name
- Submit a pull request