Skip to content

salomax/livremarketplace

Repository files navigation

Build Status Code Climate Coverage Status Issue Count Gitter

open source light ERP for e-commerces

Enviroment

  • Google Appengine (Endpoints API) and Datastore
  • Python
  • Bootstrap and JQuery

Modules

  • Products
  • Suppliers
  • Customers
  • Purchases
  • Sales
  • Cash Flow
  • Dashboard with many metrics
  • Reports

ROADMAP

  • Integration with Correios, MercadoLivre and eBay
  • Android and iOS clients

Release Notes

Git

git add .
git commit -m "Comments"
git push

Dev server

$ dev_appserver.py . --log_level=debug [--clear_datastore] [--clear_search_indexes]

Upload Application (Example)

$ appcfg.py -A salomax-marketplace update .

WebClient

https://your-app-id.appspot.com/

Endpoints API

http://your-app-id.appspot.com/_ah/api/explorer

Tests

Install and Run

$ pip install coverage 
$ coverage run --source=app livremarketplace_test.py

Create a Test Case

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)    

... 

Mock

Make sure mock has installed

$ pip install mock

Use mock

from mock import MagicMock

something = MagicMock(return_value=None)

something()

Configure SSL

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

License

See LICENSE.

About

Open source light ERP & CRM to e-commerces

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published