Skip to content

Commit 6e13a0d

Browse files
committed
create setup script
1 parent d4a3871 commit 6e13a0d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Not to be confused with [Tap](https://zeus.ugent.be/tap).
1111
6. Run `./bin/dev`
1212
7. Browse to [http://localhost:3000](http://localhost:3000)
1313

14+
Or, run ./setup.sh and go to step 6.
15+
1416
## Adding clients
1517

1618
A client can see and modify balances of other users.

setup.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
#exit on error
4+
set -e
5+
6+
# keep track of the last executed command
7+
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
8+
# echo an error message before exiting
9+
trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT
10+
11+
asdf install
12+
bundle
13+
yarn
14+
bundle exec rails db:setup
15+
bundle exec rails db:migrate
16+
bundle exec rails db:seed

0 commit comments

Comments
 (0)