-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·63 lines (54 loc) · 1.62 KB
/
init.sh
File metadata and controls
executable file
·63 lines (54 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
# MedTracker Development Environment Setup
# This script initializes the development environment for MedTracker
set -e
echo "=========================================="
echo " MedTracker Development Environment"
echo "=========================================="
echo ""
# Check for required tools
check_tool() {
if ! command -v "$1" &> /dev/null; then
echo "❌ $1 is required but not installed."
return 1
else
echo "✅ $1 found"
return 0
fi
}
echo "Checking required tools..."
check_tool "docker" || exit 1
check_tool "task" || { echo "Install task from https://taskfile.dev"; exit 1; }
echo ""
echo "Starting development environment..."
echo ""
# Start the development server
task dev-up
echo ""
echo "Waiting for services to be ready..."
sleep 5
# Seed the database with fixtures
echo "Seeding database with test data..."
task dev-seed
echo ""
echo "=========================================="
echo " Development Environment Ready!"
echo "=========================================="
echo ""
echo "Access the application at: http://localhost:3000"
echo ""
echo "Test Users (password: 'password'):"
echo " - [email protected] (administrator)"
echo " - [email protected] (doctor)"
echo " - [email protected] (nurse)"
echo " - [email protected] (carer)"
echo " - [email protected] (parent)"
echo ""
echo "Useful commands:"
echo " task dev-logs - View server logs"
echo " task dev-stop - Stop the server"
echo " task test - Run tests"
echo " task rubocop - Run linter"
echo ""
echo "To view all available commands: task --list"
echo ""