Blogging-Website is a software that provides a social blogging platform with various features and functionalities. The software allows users to create and manage their blogs, as well as interact with other users through comments and favorites.
-
User Authentication: Blogging-Website uses JWT (JSON Web Tokens) for user authentication, allowing users to log in and sign up for an account.
-
CRUD Operations: The software provides full CRUD (Create, Read, Update, Delete) functionality for users, articles, and comments.
-
Article Management: Blogging-Website allows users to create, edit, and delete articles, as well as view a list of articles pulled from either a feed, global feed, or by tag.
Here’s an overview of the main pages of Blogging-Website:
- URL: https://writely.3sangeetha3.me/
- Displays:
- List of tags
- List of articles pulled from either Feed, Global, or by Tag
- Pagination for the list of articles
- Sign In URL:
/#/login
- Sign Up URL:
/#/register
- User authentication using JWT (JSON Web Tokens), where the token is stored in
localStorage
.
- URL:
/#/settings
- Allows users to modify their profile information.
- URL:
/#/editor
- Edit Article URL:
/#/editor/article-slug-here
- This page allows users to create or edit articles.
- URL:
/#/article/article-slug-here
- Displays the full article content and includes:
- A delete button for the article (only shown to the article's author)
- Markdown rendering on the client-side from the server
- A comments section at the bottom of the page
- A delete comment button (only shown to the comment's author)
- URL:
/#/@username
- Displays the user’s profile with a list of their articles and favorited articles.
To install BLOGGING-WEBSITE, follow these steps:
- Ensure you have Node.js and npm installed on your system.
-
Clone the repository:
git clone https://github.com/3sangeetha3/BLOGGING-WEBSITE.git
-
Navigate to the project directory:
cd BLOGGING-WEBSITE
-
Install the required dependencies using npm:
npm install
-
Navigate to the Frontend Directory:
cd Blogging-website-frontend
- Start the frontend:
npm run dev
This command will start the local server, and you can access the frontend of BLOGGING-WEBSITE by navigating to http://localhost:5173 in your browser.
-
Navigate to the Backend Directory:
cd Blogging-website-Backend
- Start the backend:
npm run dev
This command will start the backend server, and you can access the backend of BLOGGING-WEBSITE by navigating to http://localhost:3000
Before running the BLOGGING-WEBSITE, you need to create a .env
file in the root of the project to store your environment variables.
- Create a new file named
.env
in the root directory of the project. - Add the following environment variables to the
.env
file:
PORT=3000
DATABASE_URI=your_database_uri_here
ACCESS_TOKEN_SECRET=your_access_token_secret_here
- Replace
your_database_uri_here
with your actual MongoDB connection string. - Replace
your_access_token_secret_here
with a secure secret for your access tokens. - Make sure to keep your
.env
file private and do not share it publicly.
👤 Jadamal Sangeetha Choudhary
Give a ⭐️ if this project helped you!
Thank you for using Blogging-Website! We hope it enhances your blogging experience. Stay tuned for future updates.