Skip to content

monkeyphp/phoenix-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

phoenix-stack

This repository is aimed at getting a working environment installed and configured to start developing an application using the Phoenix Framework.

It will attempt to install the stack as described in the Installation and the Up And Running guides.

Getting Started

You will need the following applications, installed on your development machine.

Git

Install Git from here

    $ git --version
    $ git version 1.9.5 (Apple Git-50.3)

Virtual Box

Install VirtualBox from here

    $ vboxmanage --version
    $ 4.3.24r98716

Vagrant

Install Vagrant from here

    $ vagrant --version
    $ Vagrant 1.6.5

Getting the Code

Download the release as tar.gz or zip format

    $ curl -OL https://github.com/monkeyphp/phoenix-stack/archive/0.0.1.tar.gz
    $ tar -xzf 0.0.1.tar.gz
    $ mv phoenix-stack-0.0.1 phoenix-stack
    $ cd phoenix-stack 

Or clone out this repository

    $ git clone [email protected]:monkeyphp/phoenix-stack.git
    $ cd phoenix-stack
    $ rm -Rf .git

Start the Vagrant machine

The following commands should start the Vagrant VM and install the development stack.

    $ cd phoenix-stack/tools/vagrant
    $ vagrant up

Creating a new Phoenix Application

Replace myapp with your application name

    $ cd phoenix-stack/tools/vagrant
    $ vagrant ssh
    $ cd /mnt/project/phoenix-stack
    $ mix phoenix.new myapp

Create the database

    $ cd phoenix-stack/tools/vagrant
    $ vagrant ssh
    $ cd /mnt/project/phoenix-stack/myapp
    $ mix ecto.create

If you get the error

    $ ** (Mix) The task "ecto.create" could not be found

check that you have changed to your application root directory ie

    $ cd /mnt/project/phoenix-stack/myapp`

Starting the Server

    $ cd phoenix-stack/tools/vagrant
    $ vagrant ssh
    $ cd /mnt/project/phoenix-stack/myapp
    $ mix phoenix.server

You should now be able to access your site in your browser at: http://192.168.99.210:4000/

About

Install the Phoenix Framework Development Stack

Resources

Stars

Watchers

Forks

Packages

No packages published