Skip to content

Yago/postally

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¨ Postally

AiO email creator assitant

Prerequisites

Your project need NodeJS 8+.

Postally are using the following libraries to offer an full email development environment :

To help your Email creation process, you can take a look at :

Installation

First, install postally globally

$ npm install -g postally
# or
$ yarn global add postally

Usage

Init your project

To create a new postally project, you can choose to create a new directory (f.ex. new_project) or bootstrap the project inside the current one.

$ postally init new_project
$ cd new_project
# or
$ postally init

This will produce the following file structure inside your project directory :

.
β”œβ”€β”€ build            πŸ‘ˆ your project's build (to use with MailChimp or CM)
β”œβ”€β”€ data.json        πŸ‘ˆ the json data to inject in the markup
β”œβ”€β”€ images           πŸ‘ˆ your image folder
β”œβ”€β”€ index.html       πŸ‘ˆ the inky/twig newsletter template
β”œβ”€β”€ node_modules     πŸ‘ˆ your only dependency
β”‚    └── foundation-emails
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json     πŸ‘ˆ npm settings
β”œβ”€β”€ styles.scss      πŸ‘ˆ your custom styles
└── variables.scss   πŸ‘ˆ your custom and overrided Foundation for Emails variables

Start the development environment

In your project directory, you can use the following command to start a web server into your default browser. It will automaticaly reload the rendered page and remake the build each time you will save your working files.

$ postally start

Create a once build

Almost the same as the start command, it only creates a once build.

$ postally build