Skip to content

Commit 1d093f0

Browse files
Add readme and makefile to example
1 parent 5de691f commit 1d093f0

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ Included packages:
4646
- Chai
4747
- Axios
4848
- Lodash
49+
50+
## Example
51+
52+
Check [Example](example/example.md)

example/Makefile

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# ===========================
2+
# Main commands
3+
# ===========================
4+
5+
info: do-show-commands
6+
7+
start: do-start
8+
stop: do-stop
9+
kill: do-kill
10+
test: do-start do-test
11+
12+
# ===========================
13+
# Snippets
14+
# ===========================
15+
16+
do-show-commands:
17+
@echo "\n=== Make commands ===\n"
18+
@echo "make start Start the app container"
19+
@echo "make stop Stop the app container"
20+
@echo "make kill Stop the container and remove networks and containers"
21+
@echo "make test Start the container and run the regression test"
22+
@echo ""
23+
24+
do-start:
25+
@echo "\n=== Start app ===\n"
26+
docker-compose up -d app
27+
@echo "\n> Your app is running on http://localhost:8080\n"
28+
29+
do-stop:
30+
@echo "\n=== Stop app ===\n"
31+
docker-compose stop
32+
33+
do-kill:
34+
@echo "\n=== Kill app ===\n"
35+
docker-compose down
36+
37+
do-test:
38+
@echo "\n=== Test ===\n"
39+
docker-compose run puppeteer-cucumber

example/example.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Example
2+
3+
I've created a little example that tests the todoMVC.
4+
5+
Just run `make test` in the example folder to test adding and deleting todo's.
6+
7+
For other make commands run `make info`.
8+
9+
## Credits
10+
11+
The todoMVC was created by [Evan You](http://evanyou.me/) and can be found:
12+
13+
- [on the VUE website](https://vuejs.org/v2/examples/todomvc.html)
14+
- [on github](https://github.com/tastejs/todomvc/tree/master/examples/vue)

0 commit comments

Comments
 (0)