Faktograf is based on sage theme, more about sage below.
# Create DB
mysql -p -e "CREATE DATABASE fg; CREATE USER 'fg'@'localhost' IDENTIFIED BY 'fg'; GRANT ALL PRIVILEGES ON fg.* TO 'fg'@'localhost'; FLUSH PRIVILEGES;"
# Install code
wget https://wordpress.org/wordpress-4.6.1.tar.gz
tar -xzf wordpress-4.6.1.tar.gz
mv wordpress faktograf
cd faktograf
git clone https://github.com/TransparenCEE/faktograf wp-content/themes/faktograf
echo "Edit db connection params and set $table_prefix = 'fg_';"
cp wp-config-sample.php wp-config.php
vim wp-config.php
# change site URL to one of your server and load database
# wp-content/themes/faktograf/initialize/sampledata.sql
cat sampledata.sql | sed 's/http:\/\/faktograf\.hr\/site/localhost:82/g' | sed 's/http:\/\/faktograf\.hr/localhost:82/g' | sed 's/home\/faktograf\/public_html\/site/home\/www\/faktograf/g' | mysql fg -u fg -pfg
tar -xvf wp-content/themes/faktograf/initialize/uploads.tar.gz -C wp-content
# Go to your website /wp-admin and login using credentials [email protected] Password1
# Go to your website, it should work! if not you may need a .htaccess file in root of the WP: See http://localhost:82/wp-admin/options-permalink.php
These required plugins are covered by installation procedure specified above
Sage is a WordPress starter theme based on HTML5 Boilerplate, gulp, Bower, and Bootstrap Sass, that will help you make better themes.
- Source: https://github.com/roots/sage
- Homepage: https://roots.io/sage/
- Documentation: https://roots.io/sage/docs/
- Twitter: @rootswp
- Newsletter: Subscribe
- Forum: https://discourse.roots.io/
Sage uses gulp as its build system and Bower to manage front-end packages.
Building the theme requires node.js. We recommend you update to the latest version of npm: npm install -g npm@latest
.
From the command line:
- Install gulp and Bower globally with
npm install -g gulp bower
- Navigate to the theme directory, then run
npm install
- Run
bower install
You now have all the necessary dependencies to run the build process.
gulp
— Compile and optimize the files in your assets directorygulp watch
— Compile assets when file changes are madegulp --production
— Compile assets for production (no source maps).
To use BrowserSync during gulp watch
you need to update devUrl
at the bottom of assets/manifest.json
to reflect your local development hostname.
For example, if your local development URL is http://project-name.dev
you would update the file to read:
...
"config": {
"devUrl": "http://project-name.dev"
}
...
If your local development URL looks like http://localhost:8888/project-name/
you would update the file to read:
...
"config": {
"devUrl": "http://localhost:8888/project-name/"
}
...
Sage documentation is available at https://roots.io/sage/docs/.
Prerequisite | How to check | How to install |
---|---|---|
PHP >= 5.4.x | php -v |
php.net |
Node.js 0.12.x | node -v |
nodejs.org |
gulp >= 3.8.10 | gulp -v |
npm install -g gulp |
Bower >= 1.3.12 | bower -v |
npm install -g bower |