Welcome to the repository for My Blog, a simple blogging platform built with React and utilizing a locally hosted JSON server for data storage!
My Blog is a simple blogging platform built with React.js, a JavaScript library for building user interfaces. Users can create, delete, and modify blog posts. The application utilizes a locally hosted JSON server to manage and store blog data.
-
Run JSON Server: First, ensure you have the JSON server package installed globally. If not, you can install it using:
npm install -g json-server
Then, navigate to your project directory and start the JSON server with the following command:
json-server --watch data/db.json --port 8000
You can specify any available port, ensuring it does not conflict with existing services.
-
Install Node Modules: After starting the JSON server, install the required Node modules by running:
npm install
-
Start the Application: Once the Node modules are installed, start the application using:
npm start
-
Enjoy My Blog: You're all set! You can now access My Blog locally. Feel free to create, delete, or modify blog posts on the locally hosted JSON server.
- If you encounter any issues or have any questions, please don't hesitate to reach out.