- An activated python virtualenv.
- mongodb installed and running.
Virtualenv installation/activation example:
pip install virtualenv
virtualenv cep_api_env
source cep_api_env/bin/activate
MongoDB installation/running example to debian distributions:
sudo apt-get install mongodb
sudo service mongodb start
Clone the repository and install it:
git clone https://github.com/rafaelcassau/cep_api.git
Go to /cep_api
directory:
cd cep_api
Run the following command:
make install
After installing the app, edit the config.py
file with information about your mongodb running instance
MONGO_HOST = 'your localhost address'
MONGO_PORT = 'your mongodb port'
MONGO_DBNAME = 'your database name'
Running the application:
make run
Running tests:
make test