# Simple dev-note of TangleID front-end by Denny Ku ## Installation #### On web: ``` $ git clone https://github.com/abalone0204/tangleId.git $ cd tangleId ``` ``` $ vi .env OFF_TANGLE_USERS_LINK=https://tangleidentity.firebaseio.com/users.json HOST_API=http://node0.puyuma.org/tangleid_backend/api/ ``` ``` $ npm install ``` ### error [error msg](https://gist.github.com/jkrvivian/1cf570992a04d4d689227dc9a0a09411) * error in node-gyp installation Fix with: ``` $ sudo npm install --unsafe-perm ``` #### On mobile: [Building Standalone Apps](https://docs.expo.io/versions/latest/guides/building-standalone-apps.html) ## Run the dAPP - For dev: `$ npm run dev` - For production build: `$ npm run build && npm start` - If error: https://gist.github.com/yillkid/22f543437c0f2ec008a9616514c5c550 - Upgrade your nodejs to [8.x](http://blog.csdn.net/ezreal_king/article/details/78659810) ## Functions: User page:  - [ ] user page 的確會列舉所有的 claims 但僅只於 console log > * 是被 [filter](https://github.com/abalone0204/tangleId/blob/master/pages/user.js#L86) 掉了! > * 把 filter 條件關閉,claims 便會在[這裡](https://github.com/abalone0204/tangleId/blob/master/pages/user.js#L46)被列舉出來 > * Questions: > * [filter](https://github.com/abalone0204/tangleId/blob/master/pages/user.js#L86) 中的 **e** 為何物? > * 目前有無實做 calim info 的頁面?e.g. [link] > * 目前仍沒有 [get_claim_info](/s/ryxHGct1f) API 的實做。 ## 目錄結構: * 頁面 * /tangleId/pages * index * /tangleId/pages/users.js * user page * /tangleId/pages/user.js * Nav Bar * /tangleId/components/Nav/index.js * API * /tangleId/actions * ??? * /tangleId/constants/index.js ## Issues: * [Denny's dev-node](/s/HyJVy6Mgf) * Prefer UI template * http://www.material-ui.com/#/
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up