create-nene 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +118 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/default/.cursor/rules/frontend-patterns.mdc +82 -0
- package/templates/default/.cursor/rules/nene-architecture.mdc +34 -4
- package/templates/default/.cursor/rules/task-management.mdc +29 -18
- package/templates/default/apps/api/src/config/configuration.ts +1 -1
- package/templates/default/apps/web/src/app/globals.css +52 -9
- package/templates/default/apps/web/src/app/layout.tsx +20 -3
- package/templates/default/apps/web/src/app/page.tsx +344 -44
- package/templates/default/apps/web/tailwind.config.ts +12 -1
- package/templates/default/docs/kanban/DOING/_gitkeep +0 -0
- package/templates/default/docs/kanban/DONE/01-project-setup.md +24 -0
- package/templates/default/docs/kanban/README.md +60 -0
- package/templates/default/docs/kanban/TODO/01-database-integration.md +24 -0
- package/templates/default/docs/{ARCHITECTURE.md → overview/ARCHITECTURE.md} +4 -1
- package/templates/default/docs/pages/README.md +50 -0
- package/templates/default/package.json +6 -2
- package/templates/default/scripts/dev.sh +59 -0
- package/templates/default/docs/PROGRESS.md +0 -40
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# dev.sh - Start development servers and show ready message
|
|
3
|
+
|
|
4
|
+
# Colors
|
|
5
|
+
CYAN='\033[0;36m'
|
|
6
|
+
GREEN='\033[0;32m'
|
|
7
|
+
BOLD='\033[1m'
|
|
8
|
+
DIM='\033[2m'
|
|
9
|
+
NC='\033[0m' # No Color
|
|
10
|
+
|
|
11
|
+
# Start turbo in background
|
|
12
|
+
turbo run dev &
|
|
13
|
+
TURBO_PID=$!
|
|
14
|
+
|
|
15
|
+
# Wait for servers to be ready
|
|
16
|
+
check_server() {
|
|
17
|
+
local url=$1
|
|
18
|
+
local max_attempts=60
|
|
19
|
+
local attempt=0
|
|
20
|
+
while [ $attempt -lt $max_attempts ]; do
|
|
21
|
+
if curl -s -o /dev/null -w '' "$url" 2>/dev/null; then
|
|
22
|
+
return 0
|
|
23
|
+
fi
|
|
24
|
+
sleep 0.5
|
|
25
|
+
attempt=$((attempt + 1))
|
|
26
|
+
done
|
|
27
|
+
return 1
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
# Wait for both servers
|
|
31
|
+
WEB_READY=false
|
|
32
|
+
API_READY=false
|
|
33
|
+
|
|
34
|
+
for i in $(seq 1 60); do
|
|
35
|
+
if [ "$WEB_READY" = false ] && curl -s -o /dev/null http://localhost:3000 2>/dev/null; then
|
|
36
|
+
WEB_READY=true
|
|
37
|
+
fi
|
|
38
|
+
if [ "$API_READY" = false ] && curl -s -o /dev/null http://localhost:4000/api/health 2>/dev/null; then
|
|
39
|
+
API_READY=true
|
|
40
|
+
fi
|
|
41
|
+
if [ "$WEB_READY" = true ] && [ "$API_READY" = true ]; then
|
|
42
|
+
break
|
|
43
|
+
fi
|
|
44
|
+
sleep 0.5
|
|
45
|
+
done
|
|
46
|
+
|
|
47
|
+
# Print ready banner
|
|
48
|
+
echo ""
|
|
49
|
+
echo ""
|
|
50
|
+
echo -e " ${GREEN}${BOLD}✓ All servers ready!${NC}"
|
|
51
|
+
echo ""
|
|
52
|
+
echo -e " ${CYAN}Frontend${NC} → ${BOLD}http://localhost:3000${NC}"
|
|
53
|
+
echo -e " ${CYAN}Backend${NC} → ${BOLD}http://localhost:4000${NC}"
|
|
54
|
+
echo ""
|
|
55
|
+
echo -e " ${DIM}Open http://localhost:3000 in your browser to get started.${NC}"
|
|
56
|
+
echo ""
|
|
57
|
+
|
|
58
|
+
# Wait for turbo to exit (keeps script alive)
|
|
59
|
+
wait $TURBO_PID
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# Project Progress
|
|
2
|
-
|
|
3
|
-
This document tracks the development progress for AI agents and developers.
|
|
4
|
-
|
|
5
|
-
## Completed
|
|
6
|
-
|
|
7
|
-
- [x] Project scaffolding with Turborepo
|
|
8
|
-
- [x] Next.js frontend setup
|
|
9
|
-
- [x] NestJS backend setup
|
|
10
|
-
- [x] Shared package for types and constants
|
|
11
|
-
- [x] Health check endpoint
|
|
12
|
-
- [x] Basic CORS configuration
|
|
13
|
-
- [x] Request validation with class-validator
|
|
14
|
-
|
|
15
|
-
## In Progress
|
|
16
|
-
|
|
17
|
-
- [ ] Database integration
|
|
18
|
-
- [ ] Authentication system
|
|
19
|
-
- [ ] User management
|
|
20
|
-
|
|
21
|
-
## Planned
|
|
22
|
-
|
|
23
|
-
- [ ] API documentation (Swagger)
|
|
24
|
-
- [ ] Unit tests
|
|
25
|
-
- [ ] E2E tests
|
|
26
|
-
- [ ] CI/CD pipeline
|
|
27
|
-
- [ ] Docker setup
|
|
28
|
-
- [ ] Production deployment
|
|
29
|
-
|
|
30
|
-
## Known Issues
|
|
31
|
-
|
|
32
|
-
None at this time.
|
|
33
|
-
|
|
34
|
-
## Notes for AI Agents
|
|
35
|
-
|
|
36
|
-
When making changes:
|
|
37
|
-
1. Check this file for current status
|
|
38
|
-
2. Update PROGRESS.md after completing tasks
|
|
39
|
-
3. Follow the patterns in ARCHITECTURE.md
|
|
40
|
-
4. Keep API.md updated with new endpoints
|