Skip to content
This repository has been archived by the owner on Mar 24, 2019. It is now read-only.

evasio/prelaunch-landing-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Preview build with sample Bootstrap 4 template

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 git@github.com: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"
	}
}