This repository will be used by the teachers of Basecamp 11 to progressively build a Starknet application from start to finish that will include smart contracts, testing and frontend.
git clone https://github.com/starknet-edu/basecamp11-app.git
cd basecamp11-app
To activate the dev environment, make sure to have Docker and VSCode installed on your system. On VSCode, make sure to install the Dev Containers extension to make use of this Docker image for Starknet development.
To launch an instance fo VSCode inside the container, go to View
-> Command Palette
and execute the command Dev Containers: Rebuild and Reopen in Container
. At this point you should have an instance of VSCode with access to all required binaries (Scarb, Foundry, Starkli, etc.) on the integrated terminal and syntax highlighter for Cairo and Toml files.
To build and test the smart contracts, follow these steps:
scarb build
This command compiles the smart contracts and prepares them for deployment.
scarb test
This command runs the test suite to ensure the smart contracts are functioning as expected.
To set up and run the web application, follow these steps:
-
Navigate to the Web Directory:
cd web
-
Install Dependencies:
npm install
This command installs all the necessary packages and dependencies required for the web application.
-
Run the Development Server:
npm run dev
This command starts the development server, allowing you to view and interact with the web application in your browser.