Skip to content
Alice Zoë Bevan–McGregor edited this page Apr 20, 2016 · 25 revisions

WebCore 2.0 Tutorial

Interested in trying out WebCore? This tutorial will step you through the process of getting started with a simple one-function application, then walk you through the process of evolving your application to make use of templates, custom views, database connectivity, and JSON serialization. The end result will be a fully functional

Getting Started

First, you'll need a copy of Python 3 in order to follow this guide. Getting Python itself running is beyond the scope of this documentation, but once you do and are able to successfully invoke the interpreter in a terminal we can get going.

The next thing you'll need is a place to put your project. For the sake of simplicity we'll use the virtual environment support built-in to Python 3 in order to isolate the packages we'll be installing and provide a convenient "project folder" to contain the code we'll be writing. We will assume a UNIX-like computer for now, but you Windows users should be able to follow along without too much difficulty; let us know how you go!

Opening a terminal, which should place you in the "home" (~) folder associated with your user account, let's make sure we have a place for projects in general, go there, then tell Python to create a new environment:

mkdir -p Projects
cd Projects
python3 -m venv wiki