Initial app
This commit is contained in:
commit
fcf3eb14d0
84 changed files with 8470 additions and 0 deletions
script
45
script/setup
Executable file
45
script/setup
Executable file
|
@ -0,0 +1,45 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Exit if any subcommand fails
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
source script/helpers/text_helpers
|
||||
|
||||
|
||||
notice "Running System Check"
|
||||
./script/system_check
|
||||
print_done
|
||||
|
||||
notice "Installing node dependencies"
|
||||
yarn install --no-progress | indent
|
||||
|
||||
notice "Compiling assets"
|
||||
yarn dev | indent
|
||||
|
||||
print_done
|
||||
|
||||
notice "Installing shards"
|
||||
shards install | indent
|
||||
|
||||
if [ ! -f ".env" ]; then
|
||||
notice "No .env found. Creating one."
|
||||
touch .env
|
||||
print_done
|
||||
fi
|
||||
|
||||
notice "Creating the database"
|
||||
lucky db.create | indent
|
||||
|
||||
notice "Verifying postgres connection"
|
||||
lucky db.verify_connection | indent
|
||||
|
||||
notice "Migrating the database"
|
||||
lucky db.migrate | indent
|
||||
|
||||
notice "Seeding the database with required and sample records"
|
||||
lucky db.seed.required_data | indent
|
||||
lucky db.seed.sample_data | indent
|
||||
|
||||
print_done
|
||||
notice "Run 'lucky dev' to start the app"
|
Loading…
Add table
Add a link
Reference in a new issue