HUB
Sign inSign up

binocarlos/templatestack

By binocarlos

•Updated almost 9 years ago

template stack tools

Image
0

772

binocarlos/templatestack repository overview

⁠template-stack

⁠create new app

$ export TEMPLATE="google-digger-project"
$ export FOLDER="myapp"
$ docker run -ti \
  -e TEMPLATE \
  -e FOLDER \
  -v $PWD:/output \
  -v $PWD/run.sh:/run.sh \
  binocarlos/templatestack
$ cd myapp
$ make setup
$ make build
$ ls -la

⁠start

$ make dev
$ make api.cli
$ node src/index.js
$ make frontend.cli
$ yarn run watch
$ make database.create

⁠initial boot

After the first initial boot - there are no database tables, create them:

$ make schema

⁠database ops

⁠get psql CLI
$ bash scripts/postgres.sh psql
⁠drop tables
$ cat scripts/sql/drop.sql | bash scripts/postgres.sh psql
⁠create tables
$ make api.cli
$ yarn run knex -- migrate:latest
⁠create new migration for app
$ make api.cli
$ yarn run knex -- migrate:make mymigration
⁠reset database

stop docker

$ rm -rf .data
Tag summary
Recent tags
Content type
Image
Digest
Size
327 MB
Last updated
almost 9 years ago
docker pull binocarlos/templatestack:latest