Initial commit

This commit is contained in:
tofu
2026-03-02 23:49:35 +05:00
commit 72b94fc682
42 changed files with 793 additions and 0 deletions

8
bin/dev Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env sh
if ! gem list foreman -i --silent; then
echo "Installing foreman..."
gem install foreman
fi
exec foreman start -f Procfile.dev --env=/dev/null "$@"

25
bin/setup Normal file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# This script is a way to set up and keep your development environment updated
# automatically. It is meant to be idempotent so that you can run it at any
# time to get the same result. Add any new necessary setup steps to this file
# as your application evolves.
announce() {
local bold='\033[1m'
local reset='\033[0m'
printf "${bold}${1}${reset}\n"
}
announce "Running bundle install..."
bundle check || bundle install
announce "\nRunning npm install..."
npm install
announce "\nPreparing the database..."
hanami db prepare
announce "\n🌸 Setup complete!"