toynet-reactis ToyNet's frontend service and is written in React using Typescript. To get started with local development make sure that you have the correct dependencies installed as listed above.
npm run dev
docker-compose -f docker-compose.dev.yml up --build -d
npm run [script]
toynet-flaskis ToyNet's backend service and is written in Python. To get started with local development make sure that you have the correct dependencies installed as listed above.
pip3 freeze > requirements.txt.)
toynet_mininetand tag it with the same tag you use in the below environment variable for
TOYNET_IMAGE_TAG. First you will need to download mininet. You can do this by initializing the submodule.
toynet_mininetsubmodule and run:
Makefilefacilitates common workflows, run
make helpfor detailed instructions. You can use it to run everything in Docker containers, as opposed to running Flask locally as described above.