simo126 / reactjs-blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React-Blog-JSON-Server

Welcome to the repository for My Blog, a simple blogging platform built with React and utilizing a locally hosted JSON server for data storage!

Description

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.

Setup Instructions

  1. 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.

  2. Install Node Modules: After starting the JSON server, install the required Node modules by running:

    npm install
  3. Start the Application: Once the Node modules are installed, start the application using:

    npm start
  4. 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.

Additional Notes

  • If you encounter any issues or have any questions, please don't hesitate to reach out.

About


Languages

Language:JavaScript 70.3%Language:CSS 25.5%Language:HTML 4.1%