vlburnos / Startpage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Startpage

Simple web start page that allows you to start your day with a favorite links.

This package was made for https://webstartpage.ru and shows how we build sites with MODX in Russia.

Do not install this on a production site

Install

  1. Install the latest:
  • PdoTools
  • HybridAuth
  1. Set up at least one social service to login.

Then you can work with sources or just install transport package

Package

  1. Upload and install transport package startpage-1.0.0-pl.transport.zip.
  2. Get the API key from https://www.screenshotmachine.com, and specify it in the sp_api_key system setting.

Sources

  1. Create directories
mkdir ~/www/Extras && mkdir ~/www/Extras/Startpage
mkdir ~/www/Extras/Startpage/assets && mkdir ~/www/Extras/Startpage/core
mkdir ~/www/Extras/Startpage/assets/components && mkdir ~/www/Extras/Startpage/core/components

mkdir ~/www/assets/components/startpage && mkdir ~/www/core/components/startpage
  1. Make symlinks
ln -s ~/www/assets/components/startpage ~/www/Extras/Startpage/assets/components/
ln -s ~/www/core/components/startpage ~/www/Extras/Startpage/core/components/startpage
  1. Upload sources into the Extras directory in the root of new website
  2. Install package by running http://yoursite.com/Extras/Startpage/_build/build.transport.php
  3. Get the API key from https://www.screenshotmachine.com, and specify it in the sp_api_key system setting.

Scripts and styles

All assets sources are in the _build/assets directory. If you are using sources install, you can edit them and compile with Gulp.

Install libs npm install --prefix ~/www/Extras/Startpage/_build/

Copy libs into site root gulp copy --gulpfile ~/www/Extras/Startpage/_build/gulpfile.js

Single compile gulp --gulpfile ~/www/Extras/Startpage/_build/gulpfile.js

Watch for changes gulp watch --gulpfile ~/www/Extras/Startpage/_build/gulpfile.js

PhpStorm setup

You must upload all files into ~/www/Extras/Startpage directory.

About


Languages

Language:PHP 63.4%Language:CSS 14.4%Language:JavaScript 13.4%Language:Smarty 8.8%