Giter VIP home page Giter VIP logo

baker's People

Contributors

callmephilip avatar markdowney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

baker's Issues

Add support for redux-persist-immutable

In the app/src/state/index.js file Add the following code:
import { createStore, compose, applyMiddleware } from 'redux'; import { fromJS } from 'immutable'; import createSagaMiddleware from 'redux-saga'; import devTools from 'remote-redux-devtools'; import Parse from 'parse/react-native'; import { AsyncStorage } from 'react-native'; import { persistStore, autoRehydrate } from 'redux-persist-immutable'; import createReducer from './reducers'; import sagas from '../sagas'; import Settings from '../settings'; const settings = Settings.load(); Parse.initialize(settings.parseServerApplicationId); Parse.serverURL = settings.parseServerURL; const sagaMiddleware = createSagaMiddleware(); function configureStore(initialState = fromJS({})) { const enhancers = [ autoRehydrate(), applyMiddleware(sagaMiddleware), ]; if (__DEV__) { enhancers.push(devTools()); } const store = createStore(createReducer(), initialState, compose(...enhancers)); sagas.forEach(saga => sagaMiddleware.run(saga)); persistStore(store, { storage: AsyncStorage }); return store; } module.exports = configureStore;

just a blank screen that says "App" and doesn't have a margin on ios

After cloning the repo and installing (it all went fine).

Step 0:

git clone https://github.com/thebakeryio/baker.git indraNine
cd indraNine && npm install && npm run setup 

Setup runs fine.

Step 1:

$ npm run server

> [email protected] server /Users/collumj/research/indraNine
> npm run mongo && ./node_modules/.bin/baker run --forever --node_dev ./server/src


> [email protected] mongo /Users/collumj/research/indraNine
> baker mongo

  โ— Starting a MongoDB deployment to test against...server running on port 8000

Step 2:

$ npm run ios

> [email protected] ios /Users/collumj/research/indraNine
> cd app && react-native run-ios

Found Xcode project IndraNine.xcodeproj
Launching iPhone 6 (iOS 10.0)...
Building using "xcodebuild -project IndraNine.xcodeproj -scheme IndraNine -destination id=9778FCC1-5BF9-4329-AFA8-CCC0BE5F7293 -derivedDataPath build"
User defaults from command line:

[etc...]

** BUILD SUCCEEDED **

Installing build/Build/Products/Debug-iphonesimulator/IndraNine.app
Launching org.reactjs.native.example.IndraNine
org.reactjs.native.example.IndraNine: 38306

Simulator starts up. This is what it looks like:

image

Is there supposed to be something more than that? Killing the simulator and restarting it had no effect.

setup command fails

 $  git clone https://github.com/thebakeryio/baker.git MyReactNativeApp
 $  cd MyReactNativeApp && npm install && npm run setup 

$ npm run setup

> [email protected] setup /Users/collumj/research/MyReactNativeApp
> baker run ./.baker/generate.js app

#
# I ran this twice to be sure
#

 conflict server  
? Overwrite server? overwrite this and all others
    force server
   create /Users/collumj/research/MyReactNativeApp/server/package.json
   create /Users/collumj/research/MyReactNativeApp/server/Procfile
   create /Users/collumj/research/MyReactNativeApp/server/public/images/logo.png
   create /Users/collumj/research/MyReactNativeApp/server/src/graphql/index.js
   create /Users/collumj/research/MyReactNativeApp/server/src/graphql/schema.js
   create /Users/collumj/research/MyReactNativeApp/server/src/index.js
   create /Users/collumj/research/MyReactNativeApp/server/src/parse-server/index.js
   create /Users/collumj/research/MyReactNativeApp/server/tests/.eslintrc
   create /Users/collumj/research/MyReactNativeApp/server/tests/example.test.js
    force app/assets
   create /Users/collumj/research/MyReactNativeApp/app/assets/config.json
   create /Users/collumj/research/MyReactNativeApp/app/assets/icon.png
    force app/package.json
Error: Could not find or load main class install
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Command failed: yarn install
Error: Could not find or load main class install

Yarn install? I don't have yarn. The docs don't say that's required. Yarn sounds nice but I don't think there's anyway it's ready to be something you can assume people have.

*npm* and *rnpm* commands from generator

Some components will require to install a npm packages and native dependencies. We'll need to install the dependencies on the fly when running the generator.

npm run generate closes prematurely.

When i run npm run generate baker opens the list to choose.

When i move to the item i need to select and press it closes without any message or other prompts.

I tried to check the /app/src/components and nothing has been created.

What could be the problem?

Thank You.

Deployment

Things that need to happen:

  • env switched for the app and server
  • support production settings
  • server pushed on Heroku
  • app bundled for production
  • push with FastLane (https://fastlane.tools/)
  • Codepush integration?

Incorrect import in Navigation boilerplate

Steps to reproduce:

  • create a new app
  • generate Navigation (eg: Tab boilerplate)
  • create new reducer
  • name reducer NavReducer

-> Navigation component tries to import reducer:

import { selectNavReducer } from '../../state/NavReducer/reducer';

-> while directory name is navReducer

yarn run setup fails on node v12.18 +

Running into an error during core-js installation.

app/node_modules/core-js/modules/_typed-buffer.js:157
  if(numberLength != byteLength)throw RangeError(WRONG_LENGTH);
                                ^

RangeError: Wrong length!
    at validateArrayBufferArguments (/app/node_modules/core-js/modules/_typed-buffer.js:157:39)
    at new ArrayBuffer (/app/node_modules/core-js/modules/_typed-buffer.js:247:29)
    at zlib.js:334:28
    at NativeModule.compile (internal/bootstrap/loaders.js:285:5)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:220:8)
    at loadNativeModule (internal/modules/cjs/helpers.js:23:9)
    at Function.Module._load (internal/modules/cjs/loader.js:694:15)
    at Module.require (internal/modules/cjs/loader.js:848:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/app/node_modules/node-fetch/index.js:12:12)

Downgrading node to v10.14.2 fixes the issue.

ToolbarAndroid

how would one go about using ToolbarAndroid globally?

I'm wanting to use the actions aspect of ToolbarAndroid but I'm not really sure how to go about implementing this

@callmephilip can you maybe offer a suggestion to this question?

Settings reorg

Migrate from base-android-ios to server-android-ios or base-server-android-ios

Error during `npm run setup`

I was able to clone, install, and setup successfully once, but now I receive the below error after running these commands:

git clone https://github.com/thebakeryio/baker.git MyApp
cd MyApp && npm install && npm run setup  

baker run ./.baker/generate.js app
module.js:471
throw err;
^
Error: Cannot find module './src/init'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)

Questions about using baker

@callmephilip

so after clone the repo to app_name, whats the best way of keeping up to date with baker?

aswell as remove the git history from baker in the app folder?

any suggestions would be awesome

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.