安装helios

Helios  简介

Helios is an open-source framework that provides essential backend services for iOS apps, from data synchronization and user accounts to push notifications, in-app purchases, and passbook integration. It allows developers to get a client-server app up-and-running in just a few minutes, and seamlessly incorporate functionality as necessary.

Helios is designed for "mobile first" development. Build out great features on the device, and implement the server-side components as necessary. Pour all of your energy into crafting a great user experience, rather than getting mired down with the backend.

One great example of this philosophy in Helios is Core Data Synchronization. This allows you to use your existing Core Data model definition to automatically generate a REST webservice, which can be used to shuttle data between the server and client. No iCloud, no problem.

Helios 安装过程与注意点

  1. Verify Ruby Installation:

    $ ruby -v

If you do not see ruby 1.9.x printed, we suggest installing RVM to manage Ruby versions.

  1. Install Helios at the command prompt:

    $ gem install helios

  2. Create a new Helios application:

    $ helios new myapp

  3. Create a Postgres database at the command prompt:

    $ createdb -h localhost myapp

    在此处会提示错误,是由于我的mac上没有安装postgresql,使用

    brew install postgres 安装

    init数据库

    initdb /usr/local/var/postgres

    启动pq

    pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start &

Database credentials are read from the .env file generated by Helios, as the variable DATABASE_URL. By default, this will point to a database with the name of the generated app.

  1. Change directory to myapp

    $ cd myapp

  2. Start the web server:

    $ helios server

  3. Go to http://localhost:5000/admin and you’ll see your app's Web UI

你可能感兴趣的:(Ruby,helios)