Open source cms for mobile and desktop websites

Installation

Note

This is a beta release of Nive cms. All major features are included.

The following components are required to run Nive:

  • Linux, Windows or Mac
  • Python 2.6 or 2.7
  • Pyramid 1.3, 1.4

For MySql support:

  • Python-mysql

Pyramid includes a simple web server for development and small websites. No separate web server installation is required to get started.

Nive is build on top of the pyramid web framework and is installed and handled like any other Pyramid project.

This page describes in short the installation including commands for the major operating systems. For a detailed description refer to the pyramid website.

Short installation description (You find a detailed description for Linux, Mac and Windows below.)

  1. Install Python 2.6 or 2.7.
  2. Install Python setuptools and virtualenv.
  3. Create a virtual environment (virtualenv) directory named ‘nive’ (or use your projects name).
  4. Install nive from pypi.python.org.
  5. Create a new project by using one the scaffolds and set up your new project.
  6. Start the Pyramid web server.

The message Starting HTTP server on http://0.0.0.0:6543 indicates a successful startup. Now, open http://127.0.0.1:6543 in your webbrowser and you should get the default nive website.

That’s it!

Installation script for Linux

The following script for Python and Pyramid uses the debian/ubuntu package manager apt-get.

# if you already have python2.6 installed skip the first line
sudo apt-get install python2.7

# virtual environment
sudo apt-get install python-setuptools python-virtualenv
virtualenv nive
cd nive

# download and install nive
bin/pip install nive

# create a new website project and activate it
# replace `defaultSqlite` with `defaultMysql` to use MySql as database server
bin/pcreate -t defaultSqlite myWebsite
cd myWebsite
../bin/python setup.py develop

# start pyramid
../bin/pserve development.ini

Installation script for Mac OS

Python version: Please make sure your OS is not using Python 2.5 by default. You can run a Python interpreter by double-clicking on Applications / Utilities / Terminal and then typing “python” into the window that opens up. The first line states the version

Python 2.7.2+ (default, Oct  4 2011, 20:03:08)

If the version is 2.5 or lower please refer to python on Macintosh.

For further information please refer to: How to Install Pyramid on Mac OS X.

# virtual environment
virtualenv nive
cd nive

# download and install nive
bin/pip install nive

# create a new website project and activate it
# replace `defaultSqlite` with `defaultMysql` to use MySql as database server
bin/pcreate -t defaultSqlite myWebsite
cd myWebsite
../bin/python setup.py develop

# start pyramid
../bin/pserve development.ini

Installation script for Windows

Please follow the steps described in Installing Python, setuptools and virtualenv on Windows.

# create virtualenv directory 'nive'
cd nive

# download and install nive
Scripts\easy_install nive

# create a new website project and activate it
# replace `defaultSqlite` with `defaultMysql` to use MySql as database server
Scripts\pcreate -t defaultSqlite myWebsite
cd myWebsite
..\Scripts\python setup.py develop

# start pyramid
..\Scripts\pserve development.ini
© 2013 Nive GmbH