2017 © Pedro Peláez
 

project web-project

Nette: Standard Web Project

image

venca-x/web-project

Nette: Standard Web Project

  • Sunday, February 11, 2018
  • by venca-x
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 27 Forks
  • 0 Open issues
  • 29 Versions
  • 0 % Grown

The README.md

Nette Web Project

This is a simple, skeleton application using the Nette. This is meant to be used as a starting point for your new projects., (*1)

Nette is a popular tool for PHP web development. It is designed to be the most usable and friendliest as possible. It focuses on security and performance and is definitely one of the safest PHP frameworks., (*2)

If you like Nette, please make a donation now. Thank you!, (*3)

Requirements

  • Web Project for Nette 3.0 requires at least PHP 8.0

Installation

The best way to install Web Project is using Composer. If you don't have Composer yet, download it following the instructions. Then use command:, (*4)

composer create-project nette/web-project path/to/install
cd path/to/install

Make directories temp/ and log/ writable., (*5)

Web Server Setup

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

php -S localhost:8000 -t www

Then visit http://localhost:8000 in your browser to see the welcome page., (*7)

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

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

Installation

The best way to install Web Project is using Composer. If you don't have Composer yet, download it following the instructions. Then use command:, (*10)

composer create-project venca-x/web-project path/to/install
cd path/to/install
npm install

Run grund init tasks:, (*11)

gulp upgrade

Make directories temp/ and log/ writable., (*12)

Used technologies

  • gulp
  • npm
  • nette/tester
  • Sass
  • Bootstrap v5
  • FontAwesome
  • Jquery
  • Minifi CSS and JS
  • nette-form-renderer
  • ftp-deployment
  • Naja (JS client-side AJAX library)

Basic commain in Grunt

deploy-prod Deploy files to prod server, (*13)

deploy-test Deploy files to test server, (*14)

Mysql table for login

CREATE TABLE `user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `email` varchar(128) COLLATE utf8_czech_ci NOT NULL,
  `password` varchar(255) COLLATE utf8_czech_ci NOT NULL,
  `role` varchar(64) COLLATE utf8_czech_ci DEFAULT NULL,
  PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
--
-- Data for table `user`
--

INSERT INTO `user` (`id`, `email`, `password`, `role`) VALUES
(null, 'vencax@gmail.com', 'xxxxx', 'admin');

Coding style

In superior directory instal this packages. This CS packages are in superior, because are sharing with multiple procets., (*15)

composer create-project nette/code-checker nette-code-checker
composer create-project nette/coding-standard nette-coding-standard

The Versions