-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.bat
More file actions
94 lines (82 loc) · 2.57 KB
/
setup.bat
File metadata and controls
94 lines (82 loc) · 2.57 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
@echo off
setlocal enabledelayedexpansion
title Aether Core Setup
echo =======================================================
echo [ AETHER ] - Installation script (v1.0)
echo =======================================================
echo.
echo Checking prerequisites...
:: Check for uv (Python package manager)
where uv >nul 2>nul
if %errorlevel% neq 0 (
echo [ERROR] 'uv' is not installed or not in your PATH.
echo Please install it: curl -LsSf https://astral.sh/uv/install.ps1 ^| iex
pause
exit /b 1
)
:: Check for pnpm (JS package manager)
where pnpm >nul 2>nul
if %errorlevel% neq 0 (
echo [WARNING] 'pnpm' is not installed. Trying to use npm instead.
where npm >nul 2>nul
if !errorlevel! neq 0 (
echo [ERROR] Neither 'pnpm' nor 'npm' is installed. Please install Node.js.
pause
exit /b 1
)
set PACKAGE_MANAGER=npm
) else (
set PACKAGE_MANAGER=pnpm
)
echo [OK] Prerequisites met.
echo.
:: Initialize Backend
echo =======================================================
echo [ STEP 1/2 ] Initializing Backend (Aether Core)...
echo =======================================================
cd backend
if not exist .env (
echo Creating default .env file...
copy .env.example .env >nul
)
echo Syncing dependencies with uv...
call uv sync
if %errorlevel% neq 0 (
echo [ERROR] Backend dependency installation failed.
pause
exit /b 1
)
cd ..
echo [OK] Backend ready.
echo.
:: Initialize Frontend
echo =======================================================
echo [ STEP 2/2 ] Initializing Frontend (Dashboard UI)...
echo =======================================================
cd frontend
echo Running !PACKAGE_MANAGER! install...
call !PACKAGE_MANAGER! install
if %errorlevel% neq 0 (
echo [ERROR] Frontend dependency installation failed.
pause
exit /b 1
)
:: Ensure landing page exists (open source template)
if not exist src\app\page.tsx (
echo [INFO] Setting up default landing page...
copy src\app\page.opensource.tsx src\app\page.tsx >nul
echo [OK] Landing page created from template.
)
cd ..
echo [OK] Frontend ready.
echo.
:: Summary
echo =======================================================
echo [ SUCCESS ] Aether Environment setup complete!
echo =======================================================
echo.
echo To start the project, open two terminals:
echo Terminal 1 (Backend): cd backend ^&^& uv run python main.py
echo Terminal 2 (Frontend): cd frontend ^&^& %PACKAGE_MANAGER% dev
echo.
pause