Phoenix Documentation
Phoenix ProductionPhoenix PreviewContentful
Primary version
Primary version
  • 🔥Phoenix 🔥
  • Installation + Usage
    • Prerequisites
    • Installation
    • Usage
  • Development
    • Architecture
      • Heroku
    • Content Types
      • Action Stats Block
      • Campaign
      • Content Block
      • Cause Page
      • Company Page
      • Current Club Block
      • Current School Block
      • Embed
      • External Link
      • Landing Page
      • Link Action
      • Metadata
      • Page
      • Photo Submission Action
      • Selection Submission Action
      • Share Action
      • Signup Referrals Block
      • Social Drive Action
      • Voter Registration Action
      • Voter Registration Drive Action
      • Voter Registration Marketing Page
      • Voter Registration Referrals Block
    • Features
      • Affiliate Opt In
      • Affiliate Scholarship Block
      • Analytics Waypoint
      • Delayed Element
      • Dismissable Element
      • Stat Card
      • General Buttons
      • Groups
      • Paginated Campaign Gallery
      • Popover Dispatcher
      • Refer A Friend
      • Referrals Gallery
      • Sitewide Banner
      • Sixpack A/B Testing
        • Code Tests
        • Contentful Tests
        • Testing Tips
      • Tooltip
      • Traffic Distribution
      • Volunteer Credits
      • Voter Registration
      • Zendesk Form
    • Contentful
      • Workflow
      • Content Management API Scripts
    • Helpers
  • Phoenix API
    • v2
      • Campaigns Resource
      • Posts Resource
      • Zendesk Endpoint
  • Data + Performance
    • Monitoring
    • Analytics
    • Logging
  • Contributing Instructions
    • Edit This Documentation
    • Glossary
Powered by GitBook
On this page
  • DoSomething Account
  • Northstar + Aurora
  • Laravel Homestead
  • Contentful CMS
  • Preview API
  • Contentful Caching
  1. Installation + Usage

Prerequisites

PreviousPhoenix 🔥NextInstallation

Last updated 5 years ago

To obtain access to the accounts described below, please reach out to someone on the Phoenix platform team via the team's channel in DoSomething chat.

DoSomething Account

You should have a DoSomething.org account for each of our environments (Dev, QA, Production) and request admin access permissions for them, so you can log in and access Aurora, our Admin platform for each environment.

Northstar + Aurora

For your development environment you should use the Northstar Development URL: https://identity-dev.dosomething.org

Once you have access to , retrieve the Northstar Dev OAuth Client ID and Client Secret credentials.

If switching between the Northstar development environment and your local Northstar environment (or vice versa), you'll need to run php artisan gateway:key to pull down the appropriate public key from whichever environment folks are logging in from, so your local Phoenix can validate tokens.

Laravel Homestead

Before getting started, you should have installed and set up on your computer. Homestead is a pre-packaged Vagrant box that provides a development environment to help get you up and running quickly!

Contentful CMS

Additionally, we use as our content management platform. Request an invitation to the DoSomething Contentful platform and setup an account, along with access to the Phoenix space used for this project.

Within the Phoenix space, in Settings > API keys > Phoenix [Developement], you can retrieve the Space ID, Content Delivery API - access token and the Content Preview API - access token, which are used as values for environment variables in Phoenix to properly load the platform in your local browser.

Preview API

For you local development environment, it may be helpful to use the Content Preview API - access token as the value for the CONTENTFUL_CONTENT_API_KEY environment variable, instead of the Content Delivery API - access token, so you can access unpublished, or "draft mode" work from Contentful. If you choose to do so, be sure to set the CONTENTFUL_USE_PREVIEW_API to true in your .env file, so that the Contentful configuration knows to access preview content.

Contentful Caching

By default, the application is set up to cache content records fetched from Contentful for a short duration. This can be frustrating when in active development mode and needing to see iterative changes, so feel free to set the CONTENTFUL_CACHE key to false in your .env file.

Aurora (dev)
Homestead
Contentful
DoSomething Bot