GithubHelp home page GithubHelp logo

ljbc1994 / react-native-dotnet-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.06 MB

React Native application with a dotnet web application

JavaScript 19.99% TypeScript 15.79% Starlark 0.51% Java 2.55% Ruby 0.72% Objective-C 3.78% HTML 1.59% C# 55.07%

react-native-dotnet-example's Introduction

react-native-dotnet-example

Proof of concept for a React Native application with a dotnet web application (api powered by swagger), in progress...

Setup

Single source of truth to generate a React Native iOS, Android and Web application (with dotnet 5).

Contains a dotnet api with Swagger to generate a single TypeScript client for all apps (code reuse woo!):

npm run generate-client

Required

Will need to add env variables as follows:

env

If we're running from an emulator, localhost refers to the emulator rather than to your computer... so you'll need to put in your ip address.

module.exports = {
    "API_URL": "http://[IP ADDRESS]:5000"
};

What it do

  • Generates React Native iOS and Android applications
  • Generates a Dotnet 5 / Node application with SSR support (JavaScriptViewEngine)
  • Generates an API shared by all applications with a TypeScript generated client from Swagger
  • CI to build and test all the apps
  • Dedupe a lot of shared code (webpack.client.js and webpack.server.js can be abstracted)

TODO

  • Tidy everything up
  • Style stuff
  • Better setup for SSR (Currently needs to run web:ssr then web)
  • NodeServices is obselete in latest dotnet so can use another JS engine at some point
  • Login / Sign up support?

Using

Issues I've found

  • If I want a desktop navigation, SSR generates the mobile view because it doesn't know the dimensions of the screen and there's no way of detecting the dimensions?
  • I want to debug SSR with JavaScriptViewEngine but seems to break?

react-native-dotnet-example's People

Contributors

ljbc1994 avatar

Watchers

 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.