Customer_mgmt is a python based CLI application.
In this app, one can:
- Add customer in a mongodb database
- Delete customer
- Update customer name
- View a customer by id
- View all customers
Customer_mgmt uses a number of open source projects to work properly:
- MongoDb - For backend development
- Python - For working with MongoDB
- pymongo - Distribution tool for working with MongoDB
- mongoengine - mongoengine a python object data mapper for mongodb.
Create a virtual environment before starting the project
$ cd customer_mgmt
$ python3 -m venv env
For activating the virtual environment[Windows]
$ cd customer_mgmt
$ env\bin\activate.bat
Run the requirements.txt
$ cd customer_mgmt
$ pip install -r requirements.txt
$
For running the main program
$ cd ../customer_mgmt/src/
$ python program.py
Follow PEP8: https://www.python.org/dev/peps/pep-0008/ Use pycodestyle to automatically check for PEP8.