43 lines
1.3 KiB
Markdown
43 lines
1.3 KiB
Markdown
*Looking for a shareable component template? Go here --> [sveltejs/component-template](https://github.com/sveltejs/component-template)*
|
|
|
|
---
|
|
|
|
# chipchoc
|
|
|
|
Create and send cookie-cutter emails
|
|
|
|
## Get started
|
|
|
|
Install the dependencies...
|
|
|
|
```bash
|
|
cd chipchoc
|
|
yarn
|
|
```
|
|
|
|
...then start [Rollup](https://rollupjs.org):
|
|
|
|
```bash
|
|
nyarn dev
|
|
```
|
|
|
|
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
|
|
yarn build
|
|
```
|
|
|
|
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).
|
|
|
|
## Credits
|
|
|
|
* Favicon created by [Freepik](https://www.freepik.com/) from [Flaticon.com](https://www.flaticon.com)
|
|
|
|
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.
|