A "template" for creating nextjs applications that use deep. It is recommended to merge with this repository to have its improvements in your nextjs application!
git remote add sdk https://github.com/deep-foundation/sdk.git
git fetch sdk
git merge sdk/main --allow-unrelated-histories --strategy ours
Note that we use ours
strategy during merge to avoid any changed in your existing project
If you want to get some-commits to your repository - merge with ours
strategy with old sdk commit that is created before required changes and then merge with main
git remote add sdk https://github.com/deep-foundation/sdk.git
git fetch sdk
git merge sdk/some_old_commit_hash --allow-unrelated-histories --strategy ours
git merge sdk/main
Note: I am sure that it is not the only way to do this. Possibly you can use cherry-pick
to do this
Now you can pull changes from this repository by using
git pull sdk main
- Install and use nodejs version from .nvmrc
nvm install && nvm use
- Install dependencies
npm install
- Run by using How to run
- Pass graphql url and token
To easily get token you can use
Copy token
button in the menu of deepcase. In the same menu you can findgql
button where you can get graphql path
npm run build &&
npm run start
npm run android-build &&
npm run android-run
npm run ios-build &&
npm run ios-run
You can use environment variables to set graphql path and token on server instead of setting it on client. See template in .env.development. Create a file .env.local
with your values