Skip to content

SchumacherFM/mediamock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mediamock

Mediamock provides mocking of folders and (image) files.

Current use case: The media/assets folder of an online store or content management system, containing all images, pdf, etc, can have a pretty huge total byte size, up to several GB or even TB. Copying these files to your development environment takes a long time and consumes lots of precious disk space.

A full detailed description with examples on my blog http://cyrillschumacher.com/projects/2015-12-28-mediamock/.

How to use server mode with my Online Store or CMS?

Magento

Magento 1: Please install https://github.com/SchumacherFM/mediamock-magento.

Magento 2: Please install https://github.com/SchumacherFM/mediamock-magento2 todo.

These modules disable the HDD file access for reading images. Writing still possible.

TYPO3 / NEOS

Please help

Drupal

Please help

Hybris

Please help

Shopware

Please help

OXID

Please help

Install

Download binaries for windows, linux and darwin (OSX) in the release section.

Contribute

GO15VENDOREXPERIMENT introduces reproduceable builds.

$ go get -u -v github.com/SchumacherFM/mediamock/...
$ cd $GOPATH/src/github.com/SchumacherFM/mediamock
$ git remote rm origin
$ git remote add origin git@github.com:username/CloneOfMediaMock.git
$ git submodule init
$ git submodule update
hack hack hack ...
$ GO15VENDOREXPERIMENT=1 go run *.go
hack hack hack ...
$ GO15VENDOREXPERIMENT=1 go run *.go
$ gofmt -w *.go common/*.go record/*.go
$ git commit -a -m 'Add feature X including tests'
$ git push -u origin master
create pull request to github.com/SchumacherFM/mediamock

If you introduce a new dependency this is how to add it:

$ cd $GOPATH/src/github.com/SchumacherFM/mediamock
$ git submodule add git@github.com:username/GoLangRep.git vendor/github.com/username/GoLangRep

How do I know all dependencies?

$ go list -json github.com/SchumacherFM/mediamock/...

License

Copyright (c) 2015-2016 Cyrill (at) Schumacher dot fm. All rights reserved. See LICENSE file.

Cyrill Schumacher - My pgp public key

Identicon code by: Copyright (c) 2013, Damian Gryski damian@gryski.com

About

Mediamock mocks a media directory for HTTP requests on your development environment. Avoids copying of GBs/TBs/PBs of files to your local machine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages