A dynamic microservices framework for building, connecting, and deploying cloud-native applications.
This example will show you the use-case for using Python on Architect leveraging the Django tutorial application – Polls. In this example, we've written a component spec (the architect.yml file) that defines a component to run a Python based web application.
Learn more about the architect.yml file
Architect component specs are declarative, so it can be run locally or remotely with a single deploy command:
# Clone the repository and navigate to this directory
$ git clone https://github.com/architect-team/architect-cli.git
$ cd ./architect-cli/examples/django
# Register the component to the local registry
$ architect link .
# Deploy using the dev command
$ architect dev examples/django -e localOnce the deploy has completed, you can reach your new service by going to http://web.arc.localhost/.
Default values of username and password have been set for the /admin page. To access or change the default admin user credentials, modify the parameters on the top of the architect.yml file.
parameters:
django_admin_email:
default: noreply@architect.io
django_admin_username:
default: username
django_admin_password:
default: password