The User Interface
Follow these steps to develop Prompt Wars on your machine
First, clone the repo:
Then enter the app directory and run:
You'll need some values on your .env
file, update the values accordingly:
By now, you should be able to run:
and you'll see the app running in http:localhost:3003
The app/src
directory
app/src
directoryA good place to start is at the app/src/pages/index.tsx
file. This file renders the homepage at http://localhost:3003
Contract Controllers
All the Rust contracts that you see under ./contracts/
have their corresponding Typescript files. For example, for ./contracts/prompt-wars/contract.rs
there are:
class PromptWarsMarketContract
Handles VIEW and CHANGE methods directly
Note that contract.ts
classes can be used directly on the server side:
Last updated