Skip to content

tisvasconcelos/generator-tobirama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generator-tobirama

Build Status

A generator for Yeoman, this generator create a codeigniter (php framework) structure.

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Install the generator: npm install -g generator-tobirama
  • Run: yo tobirama

Important

This generator will create a CodeIgniter (Version 2.1.4) structure, with some changes:

  • Front-end files are in the folder templates/default/...
  • The folder application/view doesn't exist

Configuration

When you run the generator, you have to answer some questions:

  • Project Name (default: Project Name)
  • Prject URL (default: http://localhost/)
  • Database hostname (default: 127.0.0.1:3306)
  • Database username (default: root)
  • Database password (default: root)
  • Database name (default: database_name)
  • Timezone (default: America/Sao_Paulo)

These settings are in the file CONFIG.ini, located in the project root, you can change it at any time.

Obs.: You will see that CONFIG.ini have the template path, you can changed if you need.

Memory Cache

Last but not least

To avoid reading CONFIG.ini to each request, if you have memcache installed on the server and enabled in PHP will be used to cache the project settings, to remove this cache access memcache via terminal and delete the key entered during installation, or change the key ($ memcache_key) within the index.php file.

Obs.: The cache is set to expire in 15 days.

Links:

License

MIT License

About

Yeoman generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages