项目作者: jdboris

项目描述 :
A generic blog website template, built on the AMP stack and Bootstrap (with SASS)
高级语言: CSS
项目地址: git://github.com/jdboris/amp-stack-blog-boilerplate.git
创建时间: 2019-11-21T09:14:09Z
项目社区:https://github.com/jdboris/amp-stack-blog-boilerplate

开源协议:

下载


amp-stack-blog-boilerplate

A generic blog website template. Built on the AMP stack and Bootstrap.

⛔️ DEPRECATED
This repository is no longer maintained and not recommended for use by anyone.

Example

Installation

Create database schema

Submit the form on “sql/index”

Setup mail()

https://stackoverflow.com/questions/4095289/how-to-configure-php-ini-to-use-gmail-as-mail-server

Prepare sass compiler (skip this if your code editor can compile sass)

1. Install/upgrade node and NPM

https://github.com/felixrieseberg/npm-windows-upgrade

2. Install/upgrade npx




npm install -g npx

Install postcss and autofixer:
npm install postcss-cli autoprefixer

https://github.com/postcss/postcss-cli

3. Download/Build libsass and sassc

https://github.com/sass/libsass/blob/master/docs/build-with-visual-studio.md
https://github.com/sass/sassc/blob/master/docs/building/windows-instructions.md

4. Finish setting up sassc


Copy sassc.exe into scss directory and create sass-compiler.bat…

  1. @echo off
  2. set RESTVAR=
  3. shift
  4. :loop1
  5. if [%3]==[] goto after_loop
  6. set RESTVAR=%RESTVAR% %3
  7. shift
  8. goto loop1
  9. :after_loop
  10. echo %RESTVAR%
  11. echo "args above"
  12. echo "running"
  13. C:\libsass\sassc\sassc.exe %RESTVAR%
  14. postcss "css\*.css" --replace --use C:\Windows\System32\node_modules\autoprefixer

Configure httpd.conf


  1. Disable "socache_shmcb_module"
  2. Disable "pagespeed"

Configure php.ini


  1. include_path = "...[ROOT DIRECTORY]"
  2. opcache.enable=0

Development

Follow the TODO instructions in the following files:

  • .htaccess
  • utilities.php
  • error-codes.php
  • Modal.php
  • RegEx.php
  • flags.php
  • UserPowerLevels.php
  • emails/email-verification.php
  • emails/password-change.php
  • _pdo.php