2017 © Pedro Peláez
 

project baseapp

image

sebacruz/baseapp

  • Wednesday, January 10, 2018
  • by sebacruz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Base App

Requirements

Setup

$ composer create-project sebacruz/baseapp app
$ npm install

Copy .env.dist file to .env and set your needed environment variables, like database credentials:, (*1)

$ cp .env.dist .env
$ vi .env

If you don't set the APP_ENV variable it will be "production" by default., (*2)

Local Development Server

If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application you may use the composer start command. This command will start a development server at http://0.0.0.0:8080:, (*3)

$ composer run-script start

App routing

All routes are defined in src/routes.php., (*4)

App structure

The app is divided in a few directories:, (*5)

  • public: public directory where you have to point your the domain. This is where you put public stuff, like the robots.txt, google verification files, etc.
  • src: php stuff goes here. The PHP autoloader will look here for the App namespace, for example: if you call the \App\Example\Class the autoloader will try to load the file src/Example/Class.php.
  • resources: contains assets sources and views. DO NOT PUT DEPENDENCIES (LIKE jQuery OR bootstrap) HERE, USE NPM FOR THAT.
  • vendor: php dependencies managed by composer.
  • node_modules: node dependencies managed by npm.

RTFM

This app depends on various projects, if you are having some troubles read the project's docs and if you can't solve it leave an issue., (*6)

The Versions

10/01 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastián Cruz

10/01 2018

2.1.0

2.1.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastián Cruz

10/01 2018

dev-develop

dev-develop

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastián Cruz

05/06 2017

2.0.4

2.0.4.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastián Cruz

05/06 2017

2.0.3

2.0.3.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastián Cruz

12/05 2017

2.0.1

2.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastián Cruz

12/05 2017

2.0.2

2.0.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sebastián Cruz

12/05 2017
22/03 2016
16/09 2015