open source light ERP for e-commerces
- Google Appengine (Endpoints API) and Datastore
- Python
- Bootstrap and JQuery
- Products
- Suppliers
- Customers
- Purchases
- Sales
- Cash Flow
- Dashboard with many metrics
- Reports
- Integration with Correios, MercadoLivre and eBay
- Android and iOS clients
- v0.1.0-alpha scheduled to 03/15/2016
git add .
git commit -m "Comments"
git push
$ dev_appserver.py . --log_level=debug [--clear_datastore] [--clear_search_indexes]
$ appcfg.py -A salomax-marketplace update .
https://your-app-id.appspot.com/
http://your-app-id.appspot.com/_ah/api/explorer
$ pip install coverage
$ coverage run --source=app livremarketplace_test.py
Add module in the livremarketplace_test.py
# Add modules to test over here
MODULES_TO_TEST = ['example_test', ...]
Create your test case in /app_test
# Import super class TestCase
import from test_utils import TestCase
class YourTestCase(TestCase):
""" Test case example.
"""
# Override setUp() to create a webtest
def setUp(self):
# Call super method
super(YourTestCase, self).setUp()
# Create service
YourService = endpoints.api_server(
[CustomerService], restricted=False)
# Create test
self.testapp = webtest.TestApp(YourService)
...
Make sure mock has installed
$ pip install mock
Use mock
from mock import MagicMock
something = MagicMock(return_value=None)
something()
For more info check Using custom domains and ssl.
Generate key and crs
$ openssl req -new -nodes -keyout yourname.key -out yourname.csr
Send to CA the .crs generated Retrieve from CA .zip with certificate Concat
$ cat www_example_com.crt ASecureServerCA.crt ATrustCA.crt ATrustExternal.crt > concat.crt
Generate unencrypted format
$ openssl rsa -in yourname.key -out yourname.key.pem
Match
$ openssl x509 -noout -modulus -in concat.crt | openssl md5
$ openssl rsa -noout -modulus -in yourname.key.pem | openssl md5
Upload to appengine
See LICENSE.