Skip to content

aish0749/BlogVista

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

#Blog Application This is a simple blog application built using React, Node.js, and MySQL. It allows users to create, read, update, and delete blog posts. The application follows a client-server architecture, with React handling the frontend and Node.js serving as the backend API. MySQL is used as the database to store the blog post data.

Features User Registration and Authentication: Users can sign up and log in to the application. Create Blog Posts: Authenticated users can create new blog posts. Read Blog Posts: Users can view all the blog posts on the homepage. Update Blog Posts: Authenticated users can edit their own blog posts. Delete Blog Posts: Authenticated users can delete their own blog posts. Prerequisites To run this application locally, you need to have the following installed on your system:

Node.js: Make sure you have Node.js installed. You can download it from https://nodejs.org. MySQL: Install MySQL Server and set up a database. You can download it from https://www.mysql.com. Getting Started Clone the repository: git clone Install dependencies: cd blog-application npm install Set up the database: Create a new MySQL database for the blog application. Open the server/db.js file and update the database connection details with your MySQL database credentials. Start the backend server: cd server npm start The backend server will start running on http://localhost:5000.

Start the frontend development server: cd client npm start The frontend development server will start running on http://localhost:3000.

Open your web browser and visit http://localhost:3000 to access the blog application. Directory Structure client: Contains the React frontend code. server: Contains the Node.js backend code. server/routes: Contains the API routes for user authentication and blog posts. server/db.js: Handles the MySQL database connection and queries. server/models: Contains the database models for user and blog post entities. server/config: Contains configuration files for database and authentication. server/controllers: Contains the logic for handling user and blog post operations. Contributing If you'd like to contribute to this project, you can fork the repository and create a pull request with your proposed changes. Be sure to follow the existing code style and guidelines.

License This project is licensed under the MIT License. See the LICENSE file for more information.

Acknowledgments This project was built using React, Node.js, and MySQL. Some dependencies and libraries used in this project include React Router, Axios, Express, and Sequelize.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published