NFT-based Sharing Platform for Digital Twin Data on Tezos – a Project with GAIA-X
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
How to set up your project locally.
To run the project locally you need to have install node.js and Docker
- In the
./contracts
directory run:
$ yarn install
- Rename the
.env.template
in./contracts
to.env
file. The file should include the following data.
ALICE_SECRET=edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq
JON=jon,edpkuTWU5vkNqfFXSAJuZNVa4gAdF6iU3tZongtkgesoytne2YcqVj,tz1ggvpTMyxX5QVYqbpLVmNGCsgDpDyUMawq,unencrypted:edsk3Un2TGaZYUL1gCDPyUvkYvtxznkmZwfa4fdcjdWrne2kyvd3Lj
LAURA=laura,edpkv2PkEkoaYN9KP769GrFgshMoVn8cvHUuYVUkogxiqZMctxPbB8,tz1TUEs5dubGJoCkvSK11zFqTWU9jh6cV8kb,unencrypted:edsk3VdieyzxcsjFRxApVvLk8LQmQELiuJtGrww27WHamxF83dZwyY
MAGGY=maggy,edpkv8V18vjq3HjYXVtHHtiUB6VBkQBUVmQK4zkHKtZGHLQKagGKa7,tz1fekugemWNMQKcLjxv7YghhyDHwPqd1bVF,unencrypted:edsk3W5FsSG9GMWJNL2nPYJd5NNN8rtikT5Nq3hiJf9NGjDSZW8cco
SOURCE_FILE=/opt/taia-x/contracts/contracts/src/taia_x_main.mligo
OUTPUT_FILE=/opt/taia-x/contracts/contracts/out/taia_x_main.tz
ENTRY_POINT=main
- In the
./contracts
folder compile and run the sandbox via:
$ docker compose up
- In the
./contracts
folder deploy the contract to the sandbox via:
$ yarn run deploy:sandbox
-
Copy the contract address from the console output and assign it to
VUE_APP_CONTRACT_ADDRESS
in./frontend/.env.template
and rename the file to.env
. -
Rename the
.env.template
in./dipdup
to.env
file and assign the contract address toCONTRACT_ADDRESS
. -
In the
./ipfs
folder run the ipfs cluster:
See here how to fix CORS error if it happens, when minting a token.
$ docker compose up
- Rename the
.env.template
in./backend
do.env
and run the backend:
$ docker compose up
- In the
./tzkt
folder run the tzkt indexer:
$ docker compose up
- In the
./dipdup
folder build and run the selective contract indexer:
$ docker compose build
$ docker compose up
- In the
./frontend
folder build and run taia-x:
$ docker compose build
$ docker compose up
or run without docker via npm run serve
- Stop all containers by running
docker compose down
in the respective folders.
- Create a new Network for your local Sandbox with a local RPC endpoint. Set the RPC-Url to
http://localhost:20000
and the name to an arbitrary name.
- Import all accounts from the
.env
file in./contracts
by it's private key, which starts withedsk...
. The.env
includes 4 predefined users:
- ALICE
- MAGGY
- JON
- LAURA
Show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
Install act following one of the options in the docs
To see the github actions available:
act -l
To run a specific action:
act -j GITHUB_ACTION_NAME
- [] Feature 1
- [] Feature 2
- [] Feature 3
- [] Nested Feature
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Pull the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Project Link: https://github.com/taia-x/taia-x