Skip to content

A microservice for the creation and management of materials

Notifications You must be signed in to change notification settings

khelwood/aker-materials

 
 

Repository files navigation

Materials service

A service for the creation and management of materials.

The service is written using the Eve REST API framework (which itself is based on Flask) using MongoDB as its database.

## Requirements

  • Python 2.7
  • pip
  • virtualenv
  • MongoDB

Installation

  1. Clone the repository

  2. Create virtual environment virtualenv venv

  3. Activate virtual environment source venv/bin/activate

  4. Install the dependencies pip install -r requirements.txt

Usage

Make sure MongoDB is installed and is running and that you have activated your virtual environment.

The environment variable EVE_ENV can be used to set the environment of the application (the default being development if the variable is not set). The application looks in the db directory to find a .py file with the name of the environment.

#### Running the server

python run.py

Running the tests

python -m unittest discover -v -s tests -p "*tests.py"

About

A microservice for the creation and management of materials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.6%
  • HTML 17.4%
  • JavaScript 14.0%