This Repository provides examples on how to use Phrase in general and the integration with github.
- You will run a simple app on your machine
- You will learn how to internationalize that app
- You will learn how to integrate Phrase
- Sublime - Texteditor
- Homebrew - Packagemanager for Linux/MacOs
- Install git with homebrew by running ->
$brew install git
- Install gpg with homebrew by running ->
$brew install gpg
- RVM -Ruby Version manager
- If you run into problems with installing rvm especially with the GPG Keys, please follow the security instructions on the rvm page
- Install the correct Ruby version with rvm by running ->
$rvm install 2.4.1
We will use this Github Repository as an example
-
Create a folder via the Terminal on your Desktop
$cd Desktop
$mkdir phrase_playground
-
Navigate into the folder
$cd phrase_playground
-
Clone the Lunchroulette Repo from Github
$git clone https://github.com/docstun/lunchroulette.git
- Install Bundler -> Dependency Manger for Ruby on Rails
$gem install bundler
- Install all gems
$bundle install
-
Initialize the Database
$rails db:setup
-
Start the Server
$rails server
For a short introduction to the Ruby on Rails structure, please view the short video we provided.
For a deeper introduction of Ruby on Rails structure we suggested this video
Run the following commands in your Terminal
$brew tap phrase/brewed
$brew install phraseapp
Run the following commands in your Terminal
$phraseapp init
- You will then be asked to provide an access token, which you can create in the Phrase UI and copy/paste it into your Terminal
- Follow further instructions to setup a new project or choose an already existing project.
- When you get asked for the path just press enter, in our case the CLI already has got the right path.
- All done?! Run your first
$phraseapp push
- Play around in the Phrase UI and get all the changes with
$phraseapp pull
For futher information/ integrations also see our documentation here
Please contact support@phrase.com and we can take more direct action toward finding a solution.