Coder Social home page Coder Social logo

marketing-blog's Introduction

Marketing Blog

What is this?

The marketing blog application for the Money Advice Service. This an engine-ized fork of Publify.

Where is the code?

This is a Rails Engine, so the code lives in /app as normal, but that is not a complete rails project which you can run. As-per the convention, a standard Rails project is included in spec/dummy which then includes the engine.

To setup

NOTE: Please see the .ruby-version file to check which version of ruby this engine should be run upon.

  • Clone this git repo to your local machine
  • From the project root run $ ./bin/setup
  • That's it.

To run the tests

$ bundle exec rspec from the root directory

To run the engine on its own in the dummy container we use for engines

  • $ cd spec/dummy
  • $ bundle install
  • $ bowndler install
  • $ bundle exec rails s
  • go to localhost:3000

To run as installed within the MAS site

  • Get the lastest version of the MAS website code locally
  • Modify the Gemfile file in the frontend to point to your local repo of the Blog:
#gem 'blog', git: '[email protected]:moneyadviceservice/marketing-blog.git'
gem 'blog', path: '~/dev/blog' # THIS SHOULD POINT TO THE REPO ON YOUR LOCAL MACHINE
  • modify the /config/features.yml file in the frontend code to contain:
features:
  blog: true
  • Run $ bundle install from the frontend root directory
  • Run bundle exec rails s to start the server (might take a moment)
  • Go to localhost:3000/en/blog to look at the page in the context of the whole site.

From this point on when you make changes to the engine they should be picked up by the main site running on your local machine.

marketing-blog's People

Contributors

darokel avatar

Watchers

Tomas D'Stefano avatar Mark Norman Francis avatar Ryan Alexander avatar James Cloos avatar Gabriel Smith avatar Will Hall avatar MAS Development Team avatar John Player avatar Matt Saywell avatar Venetia Casely avatar  avatar

Forkers

nasim31

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.