2019-09-11 20:25:00 +02:00
|
|
|
# Hello World Imba
|
2015-08-16 15:52:04 +02:00
|
|
|
|
2019-09-30 05:33:50 +02:00
|
|
|
Tiny template for testing out Imba using [CSS modules][0]. Click [Use this
|
|
|
|
template][1] on GitHub to create a new repository with this template.
|
2015-08-16 15:52:04 +02:00
|
|
|
|
2016-01-16 10:29:42 +01:00
|
|
|
## Getting started
|
|
|
|
|
2019-09-11 20:25:00 +02:00
|
|
|
```
|
|
|
|
git clone https://github.com/imba/hello-world-imba
|
|
|
|
cd hello-world-imba
|
|
|
|
yarn # npm install
|
|
|
|
```
|
|
|
|
|
|
|
|
You can run the app in two ways, either served via the webpack-dev-server or
|
|
|
|
Express.
|
|
|
|
|
|
|
|
### Webpack
|
|
|
|
|
2016-01-16 10:29:42 +01:00
|
|
|
```bash
|
2018-02-09 15:58:42 +01:00
|
|
|
# start webpack-dev-server and compiler
|
2019-09-11 20:25:00 +02:00
|
|
|
yarn run dev # npm run dev
|
|
|
|
```
|
|
|
|
|
|
|
|
### Server side
|
|
|
|
|
|
|
|
```
|
|
|
|
./node_modules/.bin/imba src/server.imba
|
2016-01-16 10:29:42 +01:00
|
|
|
```
|
2019-09-30 05:33:50 +02:00
|
|
|
|
|
|
|
[0]: https://github.com/css-modules/css-modules
|
|
|
|
[1]: https://github.com/imba/hello-world-imba/generate
|