Create and send cookie-cutter emails
Find a file
Badri Sunderarajan 7dae614535 Add extra options to markdown converter
Now, bare URLs are auto-converted, links are opened in a new
window, the ~~strikethrough~~ format also works, and last but not
the least, ChipChoc is now emoji-enabled!
2021-09-14 14:48:22 +05:30
public Make JS and CSS resource paths relative 2021-06-05 00:06:33 +05:30
scripts Initial commit with basic Svelte project 2021-04-29 15:21:32 +05:30
src Add extra options to markdown converter 2021-09-14 14:48:22 +05:30
.gitignore Initial commit with basic Svelte project 2021-04-29 15:21:32 +05:30
.sample-env Allow changing of root subdirectory 2021-06-04 23:47:24 +05:30
LICENSE Add LICENSE 2021-06-04 18:01:14 +00:00
package.json Implement actual email sending, with nodemailer! 2021-06-04 23:15:38 +05:30
README.md Allow changing of root subdirectory 2021-06-04 23:47:24 +05:30
rollup.config.js Initial commit with basic Svelte project 2021-04-29 15:21:32 +05:30
server.js Allow changing of root subdirectory 2021-06-04 23:47:24 +05:30
yarn.lock Implement actual email sending, with nodemailer! 2021-06-04 23:15:38 +05:30

Looking for a shareable component template? Go here --> sveltejs/component-template


chipchoc

Create and send cookie-cutter emails

Get started

Install the dependencies...

cd chipchoc
yarn

...set up the .env config file...

CHIPCHOC_EMAIL_HOST=mail.example.com
CHIPCHOC_EMAIL_PORT=587
CHIPCHOC_EMAIL_SECURE=false
CHIPCHOC_EMAIL_USER=user@example.com
CHIPCHOC_EMAIL_PASSWORD=badexample
CHIPCHOC_BASE_URL=/

...then start Rollup:

nyarn dev

Navigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

Building and running in production mode

To create an optimised version of the app:

yarn build

You can run the newly built app with yarn start. This uses sirv, which is included in your package.json's dependencies so that the app will work when you deploy to platforms like Heroku.

Credits

This is made from a project template for Svelte apps. You can find the original template at https://github.com/sveltejs/template.