Skip to content

Cairo, Python, NodeJS, DB and frontend docker services for your Starknet Web3 dApp.

License

Notifications You must be signed in to change notification settings

shramee/starknet-dapp-with-docker

Repository files navigation

starknet-dapp-with-docker

Bootstrap your Starknet Web3 dApp development in a fully dockerized environment.

Uses docker-compose to set up containers to build, test, run, deploy and serve stuff for your Starknet dapp.

Services

  1. ./cairo - A cairo dev environment to build/run cairo and deploy starknet contracts.
  2. ./python-backend - Python environment with cairo and starknet ready.
  3. ./js-backend - NodeJS backend with Python3 and cairo ready for invoking with CLI.
  4. ./frontend - Frontend, runs npm package in ./frontend. Includes gh-pages for quick deployment to GitHub pages.

Prepare Frontend

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

Setting up

  1. Make sure you have docker installed.
  2. Clone the repo. Or download zip file and extract.
  3. Run docker-compose up in the directory in terminal.
  4. 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).

About

Cairo, Python, NodeJS, DB and frontend docker services for your Starknet Web3 dApp.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published