139

GitHub - evasio/prelaunch-landing-page: Pre-launch landing page - live preview:...

 6 years ago
source link: https://github.com/evasio/prelaunch-landing-page
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Pre-launch Landing Page

Simple pre-launch landing page application using the Nette and sample Bootstrap 4 template.

Features

  • Sign up with email
  • Referrals
  • Share to social channels

Preview (LIVE)

Requirements

  • PHP 5.6 or higher
  • MySQL/MariaDB
  • Composer

Installation

The best way to install this application is using Composer:

composer create-project evasio/prelaunch-landing-page path/to/install
cd path/to/install

Manual installation:

git clone [email protected]:evasio/prelaunch-landing-page.git
cd prelaunch-landing-page
composer install

Execute SQL query from database/schema.sql to create signup table.

Replace <DATABASE>, <USER> and <PASSWORD> with correct values in app/config/config.local.neon.

Make directories temp/ and log/ writable.

Customize text in app/presenters/HomepagePresenter.php and templates in app/presenters/templates/Homepage/.

Web Server Setup

The simplest way to get started is to start the built-in PHP server in the root directory of your project:

php -S localhost:8000 -t www

Then visit http://localhost:8000 in your browser to see the welcome page.

For Apache or Nginx, setup a virtual host to point to the www/ directory of the project and you should be ready to go.

It is CRITICAL that whole app/, log/ and temp/ directories are not accessible directly via a web browser. See security warning.

Notice: Composer PHP version

This project forces PHP 5.6 as your PHP version for Composer packages. If you have newer version on production you should change it in composer.json.

"config": {
	"platform": {
		"php": "5.6"
	}
}

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK