Flask-Diamond installs in a Python environment with virtualenv. Please see the System Requirements for information about installation pre-requisites.
Create a virtualenv for your application and install Flask-Diamond.
mkdir my-application
cd my-application
mkvirtualenv -a . my-application
pip install Flask-Diamond
If any of these steps do not work, review the System Requirements and ensure everything is installed.
Enter the virtual environment and scaffold a new Flask-Diamond application. For this Quick Start, just use the default options.
workon my-application
flask-diamond scaffold app
Test the installation to ensure everything is installed correctly:
make test
Create the application database:
make db
Start the application server:
make server
You now have a server running at http://127.0.0.1:5000. Depending on your OS, the following command will open your application in a browser.
open http://localhost:5000
Login with the following account details:
Now that you have scaffolded your first Flask-Diamond application, you can read about how to Learn Flask-Diamond by using the online documentation and materials. If you prefer to learn by experimenting with a live example, see Planets Tutorial for a hands-on introduction to an working Flask-Diamond application.