Starting an interactive¶
From scratch¶
- Create a fresh directory for your project and move into it in your terminal.
$ mkdir my-project $ cd my-project
- Now run the generator and answer the questions it asks to build your development environment.
$ yo politico-interactives
- Once the generator finishes, you can simply run gulp to start the development server.
$ gulp
From GitHub¶
- Clone the project and
cd
into the project directory. - Run the passphrase subgenerator to create a new
.env
file:
$ yo politico-interactives:passphrase
- Install dependencies.
$ yarn
- If your project is using ArhcieML, run the archie subgenerator to reconfigure the integration.
$ yo politico-interactives:archie
Note
If you’re cloning a project to use as a template for a new project, delete the .git
folder in your project root and then initialize a new git repo for the new project.
$ rm -rf .git
$ git init