This repository contains the main framework.
Please see godoc.org which is more up-to-date than this README.md file.
Magento is a trademark of MAGENTO, INC..
@todo add travis
To properly use the CoreStore framework some environment variables must be set before running go generate
.
CS_DSN
the environment variable for the MySQL connection.
$ export CS_DSN='magento1:magento1@tcp(localhost:3306)/magento1'
$ export CS_DSN='magento2:magento2@tcp(localhost:3306)/magento2'
$ go get github.com/corestoreio/csfw
$ export CS_DSN_TEST='see next section'
$ cd $GOPATH/src/github.com/corestoreio/csfw
$ go generate ./...
Setup two databases. One for Magento 1 and one for Magento 2 and fill them with the provided test data.
Create a DSN env var CS_DSN_TEST
and point it to Magento 1 database. Run the tests.
Change the env var to let it point to Magento 2 database. Rerun the tests.
$ export CS_DSN_TEST='magento1:magento1@tcp(localhost:3306)/magento1'
$ export CS_DSN_TEST='magento2:magento2@tcp(localhost:3306)/magento2'
Currently using the IntelliJ IDEA Community Edition with the go-lang-idea-plugin. At the moment Q2/2015: There are no official jar files for downloading so the go lang plugin will be compiled on a daily basis. The plugin works very well!
IDEA has been configured with goimports, gofmt, golint, govet and ... with the file watcher plugin.
Why am I not using vim? Because I would only generate passwords ;-|.
Please have a look at the contribution guidelines.
CoreStore is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.