зеркало из https://github.com/mozilla/matchpoint.git
Add some scaffolding.
- data/ directory - mongod config file - quickstart dock - __main__ module
This commit is contained in:
Родитель
60db3b8ec9
Коммит
20da95519f
|
@ -1,3 +1,3 @@
|
|||
*.py[co]
|
||||
*.swp
|
||||
data
|
||||
data/*
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
bind_ip = 127.0.0.1
|
||||
dbpath = ./data/
|
||||
noprealloc = true
|
|
@ -0,0 +1,42 @@
|
|||
===========
|
||||
Quick Start
|
||||
===========
|
||||
|
||||
To quickly get started with **matchpoint**, clone this repository and
|
||||
follow the steps below.
|
||||
|
||||
|
||||
Requirements
|
||||
============
|
||||
|
||||
You will need:
|
||||
|
||||
* Python, recommended 2.7.
|
||||
* MongoDB_, 2.0 or higher.
|
||||
* git
|
||||
|
||||
Recommended:
|
||||
|
||||
* virtualenv_
|
||||
* pip_
|
||||
|
||||
|
||||
Running the Server
|
||||
==================
|
||||
|
||||
The included MongoDB config file does not fork by default. You will need
|
||||
two terminals or to add the ``--fork`` option.
|
||||
|
||||
Start MongoDB::
|
||||
|
||||
mongod --config=configs/mongod.dev.conf
|
||||
|
||||
Start Flask::
|
||||
|
||||
python -m matchpoint
|
||||
|
||||
By default, the server will now be running on port 5000.
|
||||
|
||||
.. _MongoDB: http://www.mongodb.org/
|
||||
.. _virtualenv: http://www.virtualenv.org/
|
||||
.. _pip: http://www.pip-installer.org/
|
|
@ -0,0 +1,5 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from matchpoint import app
|
||||
|
||||
app.run()
|
Загрузка…
Ссылка в новой задаче