layrjs / crud-example-app-react-native-js

A simple example showing how to build a full-stack CRUD app with Layr and React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CRUD Example App (React Native)

This Layr example app is deprecated.

A simple example showing how to build a full-stack CRUD app with Layr and React Native.

Install

Make sure you have React Native development environment properly set up.

Make sure you have Docker installed as it is used to run the database (MongoDB) when running the app in development mode.

Install the npm dependencies:

npm install

Usage

Running the app in development mode

Start the development environment:

BACKEND_URL=http://localhost:16578 \
  MONGODB_STORE_CONNECTION_STRING=mongodb://test:test@localhost:16579/test \
  npm run start

Run the app in the iOS simulator:

npm run run:ios

Debugging

Server

Add the following environment variables when starting the development environment:

DEBUG=layr:* DEBUG_DEPTH=10

About

A simple example showing how to build a full-stack CRUD app with Layr and React Native


Languages

Language:JavaScript 57.6%Language:Java 21.9%Language:Objective-C 15.6%Language:Ruby 2.8%Language:Starlark 2.1%