Giter VIP home page Giter VIP logo

blogapp's Introduction

blogapp

Blog application for simple CRUD operations and state management with Context

This application is build with Expo. For fully opperational application, you will need to create you own API. Just follow the next steps:

  1. Create new file outside of root directory of this application.
  2. In your terminal, navigate to the new file and run the command "npm init -y", after it's complete run the next command "npm install json-server ngrok" to install json-server and ngrok. (These two packages will help you to set up you server to work on localhost and are only good to work with them while in development).
  3. In package.json file add these two scripts: "db": "json-server -w db.json -p 3000", "tunnel": "ngrok http 3000"
  4. In root directory of your server create a file named db.json and inside of it configure it like this:

{ "blogpost": [] }


This should be enough to get you started.

  1. In server project folder open two terminals. In the first one run the command "npm run db" and in second one run "npm run tunnel" and your server is up and ready.
  2. Next step is to navigate to the React Native project root/api/jsonServer.js and edit the baseURL "https://YOUR_NEW_ADDRESS.ngrok.io" which you can find in the secont terminal of you server (where you ran the command npm start tunnel)
  3. In root directory of the app run "npm start" and you are good to go.

Note: This app with the server will work only if you run it on your local WiFi Network.. so you should use LAN settings from Metro Budler.

blogapp's People

Contributors

stefo231 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.