Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gotterbild/svelte-webpack-handlebars-koa-template
A template for tests of Svelte on Koa+Handlebars+Webpack project packed into Docker
https://github.com/gotterbild/svelte-webpack-handlebars-koa-template
docker docker-compose handlebars handlebars-js handlebarsjs koa koa2 koajs svelte sveltejs webpack
Last synced: 2 months ago
JSON representation
A template for tests of Svelte on Koa+Handlebars+Webpack project packed into Docker
- Host: GitHub
- URL: https://github.com/gotterbild/svelte-webpack-handlebars-koa-template
- Owner: Gotterbild
- Created: 2019-04-29T15:39:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-11T08:48:40.000Z (over 5 years ago)
- Last Synced: 2024-11-22T11:48:37.593Z (2 months ago)
- Topics: docker, docker-compose, handlebars, handlebars-js, handlebarsjs, koa, koa2, koajs, svelte, sveltejs, webpack
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## TL;DR
1. Create `.env` file from `.env_exmaple`
2. Run `docker-compose up` (requires `docker` and `docker-compose`)
3. Project will be available on `localhost:3000`
4. `/assets/app/home-page.js` has few lines commented. Comment them out to reproduce the error: https://github.com/sveltejs/svelte-loader/issues/88## Infrastructure
It is a Docker image that runs two servers:
1. Backend NodeJS with KOA + Handlebars app backed by Redis. Located at `/`.
2. Frontend NodeJS with Webpack to package SASS and JS. Located at `/assets/`.`docker-compose up` will start both servers as well as a Redis server.
## Docker
We are using Docker for both testing and production. `docker-compose up` will start the test server on `localhost:3000`.## Development
`NODE_ENV` environment variable need to be set. You can set it manually or create a `.env` file for Docker to read. Look at `.env_example` for more information.