Skip to content

Latest commit

 

History

History

spin-kv

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Example: Spin Key-Value

This is an example showcasing the using Spin key-value with a guest component.

Preparing the Environment

Run the following commands to setup a virtual environment with Python.

python3 -m venv venv
source venv/bin/activate

Install the required packages specified in the requirements.txt using the command:

pip3 install -r requirements.txt

Building and Running the Examples

spin build --up

Testing the App

$ curl localhost:3000                      
Hello from Python!