instante/skeleton

Instante - instant Nette web application devstack

安装: 261

依赖: 0

建议者: 0

安全: 0

星星: 8

关注者: 6

分支: 5

开放问题: 7

语言:JavaScript

0.10.0 2016-09-26 15:25 UTC

This package is not auto-updated.

Last update: 2024-09-20 22:07:52 UTC


README

  ___           _              _                   //
 |_ _|_ __  ___| |_ __ _ _ __ | |_ ___       .∩∩.//
  | || '_ \/ __| __/ _` | '_ \| __/ _ \     .∩∩∩∩.
  | || | | \__ \ || (_| | | | | ||  __/    \     ) /
 |___|_| |_|___/\__\__,_|_| |_|\__\___|     \_____/

Build Status Downloads this Month Latest stable

使用 Instante 创建新应用程序

  1. 使用 composer 在当前目录安装 skeleton (稳定版)

    composer create-project instante/skeleton .
    

    要安装当前的开发版本,使用

    composer create-project instante/skeleton . dev-master
    
  2. 将此 readme.md 定制以匹配您的新项目(并删除此“创建新应用程序”部分)

  3. 使用 bin/deployment/init-project.php 初始化您的项目或通过定制 composer.json、frontend/package.json、frontend/bower.json 来使用您自己的项目名称、描述、许可等。

  4. 在项目文件夹中初始化新的 Git 仓库

    git init
    # on windows, use bin/git/setup-git.cmd to use LF line endings
    git add .
    git commit -m "initial commit"
    

部署应用程序

  1. 从项目根目录执行 composer install 以安装依赖
  2. 确保数据库模式存在且为空。可选地,您可以为测试创建一个额外的数据库模式。
  3. 确保 www 服务器有对这些文件夹的写入权限
    • temp
    • log
  4. 使用 bin/deployment/deploy-project.php 设置本地环境

开发/编译前端

安装 node.js,然后使用 shell 命令

# setup
# install gulp and bower as global node.js module
your-project/frontend$ npm install -g gulp
your-project/frontend$ npm install -g bower

# install local grunt packages
your-project/frontend$ npm install

# install local bower components
your-project/frontend$ bower install

# start watchdog
your-project/frontend$ gulp

watchdog 开始自动优化图像和 svgs、编译 css、js 和 requirejs 模式,任何更改都会进行。

更多关于前端构建过程和文件夹结构的信息,请参阅 frontend/readme.md