Uses docker-compose
to set up containers to build, test, run, deploy and serve stuff for your Starknet dapp.
./cairo
- A cairo dev environment to build/run cairo and deploy starknet contracts../python-backend
- Python environment with cairo and starknet ready../js-backend
- NodeJS backend with Python3 and cairo ready for invoking with CLI../frontend
- Frontend, runs npm package in./frontend
. Includesgh-pages
for quick deployment to GitHub pages.
Replace the contents in ./frontend
dir with your frontend NPM package and the files will be available and run from inside the container.
Example with React CRA:
npx create-react-app frontend
- Make sure you have docker installed.
- Clone the repo. Or download zip file and extract.
- Run
docker-compose up
in the directory in terminal. - This should spin up backends and frontend.
Cairo is more of an on demand container, and can be run with docker-compose up cairo
or RUN_SCRIPT=script_name docker-compose up cairo
, See ./cairo for more details.
Change command in compose.yml
as needed. Comment out/Delete unused service(s).