bakery / baker Goto Github PK
View Code? Open in Web Editor NEWMobile MVP Toolkit
Home Page: http://baker.thebakery.io/
License: MIT License
Mobile MVP Toolkit
Home Page: http://baker.thebakery.io/
License: MIT License
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;
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:
Is there supposed to be something more than that? Killing the simulator and restarting it had no effect.
$ 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.
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.
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.
Things that need to happen:
Steps to reproduce:
-> Navigation component tries to import reducer:
import { selectNavReducer } from '../../state/NavReducer/reducer';
-> while directory name is navReducer
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.
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?
Migrate from base-android-ios to server-android-ios or base-server-android-ios
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)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.