Sharepicgenerator with Docker and Grunt.
-
Clone this repo with
git clone ...
-
Install dependencies with
docker-compose run grunt sh -c 'npm install'
-
Bring up the project with
docker-compose up -d
-
Create config.json-File from config-sample.json
-
Run
make compile
to compile css an js. (Do this after very branch-checkout, or invoke file-watcher by editing a sass- or js-file)
There is also a Makefile. You can use make up
and make install
.
Bring up the project (see above) and head to http://127.0.0.1:9000. The portnumber is defined in the .env-File.
Every code goes here.
This directory is to be deployed.
Here reside the Javascript and SCSS-files. They are compiled by Grunt.
Are installed by nmp. Nothing to do here. Will not be commited. Use npm install to create folder and its content.
The Dockerfiles are here. They are referred to from docker-compose.yml.
All font-files are linked into to webserver-container, so that inkscape can use them. Handle webfonts in code/dist/fonts independently from that.
Pictures, logos, webfonts, etc. can be stored here
Compiled files. Use build-directory to change code.
Uploaded files are here as well as the sharepic. Files are deleted regularly.
Templates go here. Opposite to /tmp, directory will not be emtied automatically.
SVG.js, jQuery etc. are here. They are placed manually, not by npm.