Giter Club home page Giter Club logo

phalcon-boilerplate's Introduction

Phalcon Boilerplate Quickstart Guide

This short document will show you how to get the code working. For a more detailed explanation and documentation visit the article series at ParticleBits (@todo).

Step 1: Update your local config file(s)

Navigate to app/etc/env and update the config files. To get started you only need to update the local.php file. Feel free to add/remove/rename any file in this directory. The config files in here are environment specific and extend the config settings in app/etc/config.php. You'll probably need to update the paths and MySQL config at a minimum. Make sure the paths->hostname is without the http://.

Step 2: Run the install script

Open a terminal, navigate to the deploy directory, and run:

./install.sh <profile>

where <profile> is the name of the config file for the current environment (local, development, production, etc.). This will copy the environment config file to app/etc/config.local.php.

Step 3: Run the SQL update script

In the same terminal and directory, run:

./update_sql_db.sh <mysql arguments>

to run the SQL statements. For example:

./update_sql_db.sh -u root -ppassword -h localhost

You can also copy and execute the SQL commands in deploy/sql/ manually. Run ./update_sql_db.sh -h for help info about the script.

Test it out!

Point your browser to the base path you specified in the config. You should see the welcome message and info page.

phalcon-boilerplate's People

Contributors

mikegioia avatar xboston avatar

Stargazers

Andy Myers avatar

Watchers

Andy Myers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.