Preparing frontend environment
As it is not a frontend tutorial, we've already got you covered. We will be working with Vue v.2 with typescript support.
Here are two basic commands which will help you build your project and running it in development environment.
To quickly walk you through the structure of the project:
challenge/src/main.ts - is a starting point for the application.
challenge/src/environment.ts - here we define Arweave and SmartWeave instances and export them.
challenge/src/deployed-contracts.ts - here we indicate deployed contract id.
challenge/src/constants.ts - all the constants (including urls).
challenge/src/assets - all the assets used in the application.
challenge/src/components - all the components which are key Vue features to encapsulate reusable code.
challenge/src/router - router of the application build with vue-router.
challenge/src/store - store for the application build with Vuex which is a state management pattern and library for Vue. It serves as a centralized store for all the components in an application.
challenge/src/views - view layer of the application.
You don't need any frontend skills to complete the next chapter as we've already prebuilt the application. You will just need to write code solely connected to SmartWeave implementation. However, I encourage you to play with code a bit to make the application more personal by changing the assets or some css.
Ok, let's start interacting with our contract in the application!