This is a simple React Native blog project that demonstrates CRUD (Create, Read, Update, Delete) operations. The project uses Axios for API requests, JSON Server as a mock API, and Ngrok for exposing the local server to the internet.
Make sure you have the following tools installed on your machine:
- Node.js
- npm (Node Package Manager)
- React Native CLI
- Ngrok (for exposing the local server)
-
Clone the repository:
git clone https://github.com/manishwild/blogapp.git
-
Navigate to the project directory:
cd react-native-blog
-
Install dependencies:
npm install
-
Start the JSON Server:
npm run json-server
This will start the JSON Server and expose it through Ngrok.
-
Update the API URL:
Open
src/api/api.js
and update theBASE_URL
to the Ngrok URL provided in the console. -
Run the React Native app:
npm run android # or npm run ios
This will launch the app on your connected emulator or device.
- Create a new blog post
- Retrieve a list of all blog posts
- View details of a specific blog post
- Update an existing blog post
- Delete a blog post
- React Native
- Axios
- JSON Server
- Ngrok
Feel free to contribute to the project by opening issues or creating pull requests. Make sure to follow the code of conduct.
This project is licensed under the MIT License - see the LICENSE file for details.