Skip to content

codeispoetry/sharepicgenerator

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sharepicgenerator with Docker and Webpack.

Installation

  1. Clone this repo with git clone ...

  2. Create docker-compose.yml from docker-compose.yml.sample

  3. Install npm dependencies with docker-compose run node sh -c 'npm install'

  4. Install npm dependencies in dist within node-container `cd dist && npm install``

  5. Install composer dependencies with docker-compose run webserver sh -c 'cd dist && composer install'

  6. Bring up the project with docker-compose up -d

  7. create and edit ini/config.ini

  8. Create empty log.db-file or rsync it from live

  9. Install WordPress via browser#

    1. enter define('COOKIEPATH','/') and db-credentials in wp-config.php
  10. Run make compile to compile css and 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.

Usage

Bring up the project (see above) and head to http://127.0.0.1:9000. The portnumber is defined in the .env-File.

Projectstructure

code

Every code goes here.

code/dist

This directory is to be deployed.

code/build

Here reside the Javascript and SCSS-files. They are compiled by Grunt.

fonts

All font-files are linked into to webserver-container, so that inkscape can use them. Handle webfonts in code/dist/fonts independently from that.

Code

assets and fonts

Pictures, logos, webfonts, etc. can be stored here

assets/css and assets/js

Compiled files. Use build-directory to change code.

tmp

Uploaded files are here as well as the sharepic. Files are deleted regularly.

persistent

Templates go here. Opposite to /tmp, directory will not be emtied automatically.

Add new font

  • ttf-file should go to fonts-folder
  • create woff2 with woff2_compress <font.ttf> and move it to assets/fonts
  • add font-face in fonts.scss
  • upload font to server to /usr/share/fonts
  • edit font at https://www.glyphrstudio.com/

Create a new tenant automatically

  1. make create-tenant

  2. create section in config.ini for new tenanant

  3. edit .htaccess

  4. update config.ini on server

Enable logging

To create or update the downloads-table for logging, log in as Admin-User and download a sharepic with all the features or the new feature respectivly.

About

Sharepicgenerator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •