2021-04-29 05:51:32 -04:00
*Looking for a shareable component template? Go here --> [sveltejs/component-template ](https://github.com/sveltejs/component-template )*
---
2021-04-29 07:13:02 -04:00
# chipchoc
2021-04-29 05:51:32 -04:00
2021-04-29 07:13:02 -04:00
Create and send cookie-cutter emails
2021-04-29 05:51:32 -04:00
## Get started
Install the dependencies...
```bash
2021-04-29 07:13:02 -04:00
cd chipchoc
yarn
2021-04-29 05:51:32 -04:00
```
2021-06-04 13:48:35 -04:00
...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
2021-06-04 14:16:11 -04:00
CHIPCHOC_BASE_URL=/
2021-06-04 13:48:35 -04:00
```
2021-04-29 05:51:32 -04:00
...then start [Rollup ](https://rollupjs.org ):
```bash
2021-04-29 07:13:02 -04:00
nyarn dev
2021-04-29 05:51:32 -04:00
```
Navigate to [localhost:5000 ](http://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:
```bash
2021-04-29 07:13:02 -04:00
yarn build
2021-04-29 05:51:32 -04:00
```
2021-04-29 07:13:02 -04:00
You can run the newly built app with `yarn start` . This uses [sirv ](https://github.com/lukeed/sirv ), which is included in your package.json's `dependencies` so that the app will work when you deploy to platforms like [Heroku ](https://heroku.com ).
2021-04-29 05:51:32 -04:00
2021-04-29 07:13:02 -04:00
## Credits
2021-04-29 05:51:32 -04:00
2021-04-29 07:13:02 -04:00
* Favicon created by [Freepik ](https://www.freepik.com/ ) from [Flaticon.com ](https://www.flaticon.com )
2021-05-28 10:26:19 -04:00
* Cookie pile icon created by [ultimatearm ](https://www.freepik.com/authors/ultimatearm ) from [Flaticon.com ](https://www.flaticon.com )
* Microwave icon created by [Freepik ](https://www.freepik.com/ ) from [Flaticon.com ](https://www.flaticon.com )
* The main ChipChoc icon is a combination of the aforementioned microwave and cookie-pile icons
2021-04-29 05:51:32 -04:00
2021-04-29 07:13:02 -04:00
This is made from a project template for [Svelte ](https://svelte.dev ) apps.
You can find the original template at https://github.com/sveltejs/template.