This project is a simple travel note keeping program on the Near blockchain. It also serves as a guide for those who want to travel. Travelers can create, update and delete their travel notes here. Those who want to travel can decide on their travels by visiting the travel guide here. This project it will help people to make travel choices.
LOOM VIDEO : https://www.loom.com/share/b721600be0834c9e868a6294b7864a9c?t=236
git clone https://github.com/Murat-Selim/NCD_Travel-Guide-APP
- To Login
near login
- To Build
yarn build:release
- To Deploy
near dev-deploy ./build/release/TravelGuide.wasm
- Export $CONTRACT
export CONTRACT=YOUR_DEV_ACCOUNT_HERE
near call $CONTRACT createTravel '{"country":"country", "city":"city, "title":"title", "desc":"desc"}' --accountId $OWNER
near call $CONTRACT updateTravel '{"id":"id", "country":"country", "city":"city, "title":"title", "desc":"desc"}' --accountId $OWNER
near call $CONTRACT deleteTravelById '{"id":"id"}' --accountId $OWNER
near view $CONTRACT getTravels --accountId $OWNER
near call $CONTRACT getTravelById '{"id":"id"}' --accountId $OWNER