GithubHelp home page GithubHelp logo

yuleven / programming-phoenix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from charleshan/programming-phoenix

0.0 2.0 0.0 164 KB

Step-by-step source code for Programming Phoenix book written by Chris McCord, Bruce Tate, and José Valim

JavaScript 11.51% Elixir 80.45% CSS 0.12% HTML 7.91%

programming-phoenix's Introduction

Programming Phoenix

This repository contains the source code for Programming Phoenix book written by Chris McCord, Bruce Tate, and José Valim. You can follow along the book or jump to a section by using git tags.

How to use

  1. Get the source code
    • Clone the project with git clone https://github.com/omin/programming-phoenix.git
    • Goto the project directory with cd programming-phoenix
  2. Goto to a section
  • The book uses file path of the source code to indicate the code changes. img_0009
  • Goto any state of the project with git checkout TAG_NAME
  • e.g. git checkout channels/listings/rumbl/web/static/js/video.change6.js
  1. To start your Phoenix app:
  • Goto the sub-project directory (hello, rumbl, or rumbrella) with cd PATH
  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with npm install
  • Start Phoenix endpoint with mix phoenix.server

Here's a combination of all the commands above to save you some typing

  • mix deps.get && mix ecto.create && mix ecto.migrate && npm install && mix phoenix.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

Disclaimer: the most up-to-date source code can be found on the official Pragprog website but please do feel free to create github issues if you run accross any problems.

programming-phoenix's People

Contributors

omin avatar

Watchers

 avatar  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.